If you want the tagline to be replaced with a button similar to the demo site, all you have to do this place this code in your child theme’s functions.php and change to suit your needs.
add_filter('tc_tagline_text', 'replace_tag_with_button'); function replace_tag_with_button($content){ /* Change link inside href="" to suit your needs */ return '<a class="demo btn btn-mini btn-info" href="http://demo.presscustomizr.com" target="_blank">Demo</a>'; }
8 thoughts on “Replace tagline with buttons”
I’d like to replace the tagline with a login form rather than having a custom widget area in my header. i am using Pro. using this, I replaced this section:
return ‘Demo‘;}
with my but this gives me an internal script error on my site. Could you tell me how to replace the tag with my form that I have created?
Hi,
The developer team handles support for Customizr-Pro at http://presscustomizr.com/support/. Please post your query there with a link to your site.
Hi!.
I put it into a child’s theme functions.php file and it works, but now every time I perform an action in admin (like update a setting, a page etc), I get a blank page. Need to delete last part of url and get back to admin (www.mysite.com/wp-admin) to be able to edit or change setting. I need to do this every time. I’m on last version of wordpress. Any help?
Hi mass,
I don’t think the issue you have of blank pages is created by this snippet. Did you do something else that triggered this behaviour?
You were right. It was the plugin I used to configure my child theme that messed it up.
thank you!
Hello Menaka,
Thanks for the above code snippet. I’m looking to insert a search form in between social icons and Tagline.
Hope you could help.
Thanks
Hi Menaka,
Thank you for the code snippet above.
I’m trying to insert the search form in between “Social Icons” and “Tagline”. I don’t know php and trying to find a solution to my issue here.
Hope you could help.
Thanks
Hi Viji,
The header has various layouts with the Logo placed to the right/left/centered. In each case, the placement of other elements varies.
So, it might be a good idea to post your query at https://wordpress.org/support/theme/customizr with a link to your site.