• 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)
  • Theme Author Mystery Themes

    (@mysterythemes)

    Hello @totorosk8

    Your customization was also correct to manage the custom logo. So if you need 2 site logos add the below code under the the_custom_logo()

    $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,

    Thread Starter totorosk8

    (@totorosk8)

    Thank you for your reply, i don’t know why but it ended up working even though i had been doing the same thing for 24 hours…
    I have another question, is it possible to duplicate the style of the home page (front page) ? I would like to have this structure with “mt-fotogenic-frontpage-hero-image-wrap” and everything else from front page but on a normal page. I just want to apply this change to one page and not to all pages.

    Theme Author Mystery Themes

    (@mysterythemes)

    Hello @totorosk8

    You must customize the theme file if you want to add “mt-fotogenic-frontpage-hero-image-wrap” to the desired page. The hero image’s content will be the same for the desired page too.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘mt-custom-hooks issue’ is closed to new replies.