Community Forums › Forums › Archived Forums › Design Tips and Tricks › HELP: How to add a link at the tagline in Minimun Theme?
Tagged: anchor link, minimun theme, tagline, text, title
- This topic has 9 replies, 2 voices, and was last updated 10 years, 4 months ago by
josbarrios.
-
AuthorPosts
-
August 9, 2013 at 4:05 pm #55353
josbarrios
MemberHi. 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!
http://josuebarrios.com/blog/<?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>'; }
August 10, 2013 at 1:02 am #55406Brad Dalton
ParticipantAugust 10, 2013 at 7:18 am #55434josbarrios
MemberHeeey Brad, that's smart! I will try it right now before close the conversation. Thanks a lot! Greeting from Venezuela!
August 10, 2013 at 7:56 am #55450Brad Dalton
ParticipantYes you can also add your conditionals after the function in the code as well Jos.
August 10, 2013 at 12:44 pm #55505josbarrios
MemberHi Brad. I tried and it worked... but not very well. Look.
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. 😀
August 10, 2013 at 1:07 pm #55508Brad Dalton
ParticipantThe 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.
August 10, 2013 at 1:28 pm #55511Brad Dalton
ParticipantAugust 10, 2013 at 2:21 pm #55520josbarrios
MemberThat 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...)
August 10, 2013 at 2:26 pm #55522Brad Dalton
ParticipantI 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.
August 10, 2013 at 2:36 pm #55524josbarrios
MemberThe code works really fine, but don't do what I really need though I apreciatte a lot your help, Brad.
Look:
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).
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.