Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1244024
Different logo on scroll
Closed

Comments

  • krlzmt started the conversation

    Hi,

    How could I set the settings so that the logo works as in the example site of the theme I mean: a logo and menu color settings when screen at top and a different logo and different menu colors when scrolling along with the change of size of the menu itself.

    http://fixup.mercamaster.mx

    Thanks

  •  7,092
    Oliver replied

    Hi, sorry, not quite sure what do you mean. Can you pls provide more details with screenshots?

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • krlzmt replied

    Yes, I need my logo to change on scroll. Just like the template does, like this:

    1.- Initial position: color figure + white letters (logo) Example

    2.- On Scroll: color figure + dark letters (logo) Example

    Hope this helps clarify my comment


  •  7,092
    Oliver replied

    HI!

    IT's Light logo, there is setting "use light menu and logo" in the page settings. Light logo you can set in the theme options. Or you can change the logo for the separate page via the filter.  

    Here is the filter example :

    function thegem_custom_logo($value) {
    if(in_array(get_the_ID(), array(1000))){        return trailingslashit(plugin_dir_url( __FILE__ )) . 'images/logos/desktop/x3/x3-Logo-004.png';    }
    return $value;
    }
    add_filter('thegem_option_logo', 'thegem_custom_logo');
    function thegem_custom_small_logo($value) {
    if(in_array(get_the_ID(), array(1000))) {        return trailingslashit(plugin_dir_url( __FILE__ )) . 'images/logos/small/0.8x3/0.8x3-Logo_Outlined-004.png';    }
    return $value;
    }
    add_filter('thegem_option_small_logo', 'thegem_custom_small_logo');
    function thegem_custom_logo_light($value) {        if(in_array(get_the_ID(), array(1000))) {        return trailingslashit(plugin_dir_url( __FILE__ )) . 'images/logos/desktop/x3/x3-medical-1.png';    }        return $value;
    }
    add_filter('thegem_option_logo_light', 'thegem_custom_logo_light');
    function thegem_custom_small_logo_light($value){
    if(in_array(get_the_ID(), array(1000))) {        return trailingslashit(plugin_dir_url( __FILE__ )) . 'images/logos/small/0.8x3/0.8x3-Logo_Outlined-003.png';    }
    return $value;
    }
    add_filter('thegem_option_small_logo_light', 'thegem_custom_small_logo_light');


    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver