mt-custom-hooks issue
-
Thank you for your great theme.
I have a problem, i try to edit the “mt-custom-hooks.php” file to modify some elements like the_custom_logo(); but i have the impression that my modifications don’t change anything. Especially when i try to edit the fotogenic_site_branding part.
Is the logo generated by other wordpress files which take over?
I’m using this code inside my function.php file to add a second Logo.function menushrink_logo_customize_register($wp_customize){ $wp_customize->add_setting('menushrink_logo'); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'menushrink_logo', array( 'label' => __('Menu Shrink Logo', 'store-front'), 'section' => 'title_tagline', 'settings' => 'menushrink_logo', 'priority' => 4, ))); } add_action('customize_register', 'menushrink_logo_customize_register');
Now i need to add this new logo inside the “site-branding” part to be able to play with it with CSS (i want to have 2 logo). But i can’t make it works.
When i use someting like this inside the mt-custom-hooks.php” that’s not working.$sticky_logo_url = get_theme_mod( 'menushrink_logo' ); if ($sticky_logo_url ) echo '<img src="'.$sticky_logo_url.'" alt = "logo alt test" class="custom-logo">';
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘mt-custom-hooks issue’ is closed to new replies.