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 #1063685
Menu layout, different on different pages
Closed

Comments

  •  2
    estate_consulting started the conversation

    Hello!

    Is it possible to have the "Centered" style on the startpage, and the "Classic" style on the other pages?

    Thanks!
    Dennis

  •  7,092
    Oliver replied

    HI!

    Here is a demo of the filter:

    function thegem_custom_logo_position($value) {
        if(in_array(get_the_ID(), array(1))){
            return 'center';
        }
        if(in_array(get_the_ID(), array(2))){
            return 'menu_center';
        }
        return $value;
    }
    add_filter('thegem_option_logo_position', 'thegem_custom_logo_position');
    

    In array (1 or 2) id of the pages.

    You need to add this code to the functions.php on the child theme.

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

    Regards, Oliver