Tagline
-
I am trying to place two button in the tagline like the “Get Pro” and “Demo” buttons in the top right area on http://presscustomizr.com.
My site is not up yet.
Please help.
-
Hello,
you can use this snippet:
http://presscustomizr.com/snippet/adding-a-link-in-the-wordpress-tagline/Instead of:
<?php bloginfo( 'description' ); ?> <a href="[PUT YOUR URL HERE]" title="[A TITLE]">My link</a>
just write the html of the buttons.
Hope this helps
Another snippet
Thanks for your response.
I am a novice
I already achieved one of the links with the first snippet. I am actually struggling to manipulate it for the second one. I wish i could give you a shot at how it looks.
I used
add_filter( 'tc_tagline_display' , 'my_link_in_tagline'); function my_link_in_tagline() { global $wp_current_filter; ?> <?php if ( !in_array( '__navbar' , $wp_current_filter ) ) :?> <div class="container outside"> <h2 class="site-description"> <?php bloginfo( 'description' ); ?> <a href="[http://localhost/agrihome/market-2]" title="[A TITLE]">Market</a> </h2> </div> <?php else : //when hooked on __navbar ?> <h2 class="span7 inside site-description"> <?php bloginfo( 'description' ); ?> <a href="[http://localhost/agrihome/market-2]" title="[Market]">Market</a> </h2>
Thank you
I have managed to achieve the second link.
Now how do i customize it with the second snippet to make them look like buttons.
Thank you.
Please help
I am able to do that with the menu items but i have no clue where to put the codes to make the button for tagline.
Please help.
Thanks
Mmm,
something like this then:add_filter( 'tc_tagline_display' , 'my_link_in_tagline'); function my_link_in_tagline() { global $wp_current_filter; ?> <?php if ( !in_array( '__navbar' , $wp_current_filter ) ) :?> <div class="container outside"> <div class="site-description"> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <div class="top-buttons"> <a class="btn btn-mini btn-warning" href="http://localhost/agrihome/market-2" title="A TITLE">My link</a> <a class="btn btn-mini btn-info" href="http://localhost/agrihome/market-2" title="A TITLE">My link</a> </div> </div> </div> <?php else : //when hooked on __navbar ?> <div class="span7 inside site-description"> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <div class="top-buttons clearfix"> <a class="btn btn-mini btn-warning" href="http://localhost/agrihome/market-2" title="Market">My link</a> <a class="btn btn-mini btn-info" href="http://localhost/agrihome/market-2" title="A TITLE">My link</a> </div> </div> <?php endif; ?> <?php }
And CSS:
.top-buttons { clear:both;}`you can style the buttons too:
.top-buttons .btn {font-family: normal}
change the background color the font color, and so on.
Here’s the preset button styles you can use:
http://presscustomizr.com/snippet/twitter-bootstrap-components-customizr-wordpress-theme/Hope this helps.
Thanks so much
It worked perfectly well.Am very grateful.
One more thing if i may.
I have the login and search links together with my main menu. Like on this site http://presscustomizr.com i would like to separate them to the right as “Pro support” and “login” are aligned.
Thanks
Hello,
you can assign CSS classes to some menu items.
http://sevenspark.com/how-to/how-to-add-a-custom-class-to-a-wordpress-menu-item
Then just add some CSS rule to align them to right (float: right;)
Hope this helps.Perfect
I am so grateful.
Learning so much from here.
Hey Coach,
glad you solved 🙂 you’re welcome 😀
- The topic ‘Tagline’ is closed to new replies.