HELP: How to add a link at the tagline in Minimun Theme?

Community Forums Forums Design Tips and Tricks HELP: How to add a link at the tagline in Minimun Theme?

This topic is: not resolved

This topic contains 9 replies, has 2 voices, and was last updated by  josbarrios 1 year, 2 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #55353

    josbarrios
    Participant
    Post count: 30

    Hi. How can I add a link at the tagline in Minimun Theme? (The text beside the suscription button) I want to turn that text in a big powerfull and minimalist call to action.

    I know it can be done in the page-title.php file, but I have tried and it didn’t worked.

    Below is the code. I don’t know how to add the href=# for the text I want.

    Am from Venezuela, so my english is really bad. (Sorry for my bad grammar!)

    I’ll apreciatte A LOT your help!

    
    <?php
    
    if ( is_home() ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( 'Haz clic aquí y adquiere gratis mi ebook', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Suscríbete gratis', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_404() ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( 'Ooops! Hubo un error :/', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Suscríbete gratis', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_post_type_archive( 'portfolio' ) || is_singular( 'portfolio') ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( '< Adquiere gratis mi ebook >', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Suscríbete gratis', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_singular( 'page' ) ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( '< Adquiere gratis mi ebook >', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Suscríbete gratis', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_author() || is_category() || is_date() || is_search() || is_singular() || is_tag() ) {
    	echo '<div id="page-title"><div class="wrap"><p>' . __( '< Adquiere gratis mi ebook >', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Suscríbete GRATIS', 'minimum' ) . '</a></p></div></div>';
    }
    else {
    	echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( '< Adquiere gratis mi ebook >' ) ) . '<a class="page-title-button" href="#">' . __( 'Suscríbete gratis', 'minimum' ) . '</a></p></div></div>';
    }
    
    http://josuebarrios.com/blog/
    #55406

    braddalton
    Participant
    Post count: 10243
    #55434

    josbarrios
    Participant
    Post count: 30

    Heeey Brad, that’s smart! I will try it right now before close the conversation. Thanks a lot! Greeting from Venezuela!

    #55450

    braddalton
    Participant
    Post count: 10243

    Yes you can also add your conditionals after the function in the code as well Jos.


    #55505

    josbarrios
    Participant
    Post count: 30

    Hi Brad. I tried and it worked… but not very well. Look.

    http://josuebarrios.com/blog/

    I add the link at where says “< Adquiere gratis mi ebook >” (That’s is what I wanted!! Finally!!)

    BUT…

    The title of my website was replaced (and his font)

    How can I solve that?

    That’s the only thing I need to finally release my blog. :D

    #55508

    braddalton
    Participant
    Post count: 10243

    The code is simply sample code which you can modify to suit your needs.

    You will need to change the site title hook to the description hook.

    You can also replace the HTML for the link.


    #55511

    braddalton
    Participant
    Post count: 10243
    #55520

    josbarrios
    Participant
    Post count: 30

    That didn’t worked as I expected, haha. Take a look: http://josuebarrios.com/blog/

    Mmm… I think I will keep trying. I’ll leave this thread open in case someone can help me.

    Thanks a lot Brad! If you know about a idea, I’ll apreciatte!

    (again, sorry for my bad english…)

    #55522

    braddalton
    Participant
    Post count: 10243

    I tested this code and it works perfectly.

    You will need to change the link to a page that works on your site.

    You will also need to add your own CSS code to style that link.


    #55524

    josbarrios
    Participant
    Post count: 30

    The code works really fine, but don’t do what I really need though I apreciatte a lot your help, Brad.

    Look:

    http://josuebarrios.com/blog/

    The code puts a new text below mi site title. Also, when I set up the primary navigation menu, the big tagline beside the suscription button don’t show a anchor link (that is what I want to display a link).

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.