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 #899751
Is that possible to change logo position?
Closed

Comments

  •  2
    fengerzh started the conversation

    It's not an issue, just a curious question. I noticed that in your demo site, some of the pages has the site logo above main menu, while in other pages the logo is at the left side of the main menu. However in my site, once I set the logo above main menu, all my pages has the same style. Is that possible to have logo above main menu on some pages and logo at left side of main menu on other pages? Thank you!

  •  7,052
    Oliver replied

    Hi,

    Yes. You can. You need to install child theme and include next code in its functions.php file.

    function thegem_custom_logo_position($value) {
        if(in_array(get_the_ID(), array(2808, 14273 , 17055, 20861))){
            return 'left';
        }
        if(in_array(get_the_ID(), array(8861,27182))){
            return 'right';
        }
        if(in_array(get_the_ID(), array(6792, 12691, 13941, 16017, 18688 , 19318, 26204))){
            return 'menu_center';
        }     return $value;
    }
    add_filter('thegem_option_logo_position', 'thegem_custom_logo_position');
    It is example. You need to use your pages ids.

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

    Regards, Oliver

  •  2
    fengerzh replied

    Yes, that solved the problem. Thank you!