If you need to move Header Block Items, 3.3.* release created more options for doing this in the Customize>Header panel. This Snippet has been rewritten due to the amount of change. The Header Block items consist of: Site Title / Logo Navbar Box, containing: Social Icons Tagline Navbar (Menu) These […]
Target: Logo
The new Sticky Header in 3.2 may need some adjustments. Where to copy/paste this code? The simplest way is to use the Custom CSS section of the customizer option screen. If you have many customizations to make in CSS and PHP, then we strongly recommend you create a child theme. […]
This snippet replaces your site title (or your logo if have uploaded one) an animated SVG images based on your site title. View the demo » The SVG format is partially supported by Internet Explorer, that’s why a CSS snippet has to be added to display a fallback html […]
Here’s a quick snippet to display both your logo and your site title in the header. add_action( ‘__after_logo’ , ‘display_my_site_title’); function display_my_site_title() { //first checks if there is a logo uploaded $logo_src = esc_url ( tc__f( ‘__get_option’ , ‘tc_logo_upload’) ) ; if ( empty($logo_src) ) return; //then print the […]
Use this function in your child theme’s functions.php to change the default link on your logo to another, custom link. Just replace http://new_link with the address you want your logo to point to: add_filter(‘tc_logo_link_url’, ‘change_site_main_link’); function change_site_main_link($output) { return ‘http://new_link’; }
Howdy Customizr designr! Here’s a quick tip to simply add content before and after your text logo with CSS only. We use the CSS pseudo classes ::before and ::after to do that. Important: in this example double quotes are escaped with ‘\’ to use the code in the custom css section. […]
If you need to center Header Block Items, 3.2.* release created more options for doing this in the Customize>Header panel reducing the need to use this Snippet. Check those options first and only use parts of this code as needed: To make this change, you MUST create a child theme. […]
Customizr introduced built-in feature changes in v3.3. See this Snippet for 3.3 approach to changing Header Block items Where to copy/paste this code? The simplest way is to use the Custom CSS section of the customizer option screen. If you have many customizations to make in CSS and PHP, then […]
Add this in your child theme’s functions.php: add_filter(‘tc_logo_text_display’, ‘your_logo_display’); add_filter(‘tc_logo_img_display’, ‘your_logo_display’); function your_logo_display($output) { return preg_replace(‘/brand span3/’, ‘brand span10 offset1’, $output, -1); }