This topic has 3 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #107909
     vekha
    Participant

    Hello the team

    Just a little question : is it possible to define sidebar as “principal sidebar” instead of “none” in layout post settings ? Don’t find where… I’ve just upload the last version of Kleo, and all my posts (3 columns right and left sidebars) are now define on “none” (before it was on “principal sidebar”). And I’m not able to find the layout of single post in the theme options to correct this issue.

    Sorry for the bad english of a french girl.

    Thank you

    #108037
     Radu
    Moderator

    Hello,

    Do you have tried to set your layout defaults from wp-admin -> theme options -> blog -> Single Post page Layout* ?

    Let me know

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #108203
     vekha
    Participant

    Hi Radu
    Yes. This option is OK, define on 3 columns left and right sidebars. But no choice for which sidebar by default.
    Where’s the layout for define the type of sidebar by default ? When I write a post, the options for sidebars at the end is define on “none” as default, and I’d like to put it on “Principal sidebar” as default.
    Thanks for your answer.

    Attachments:
    You must be logged in to view attached files.
    #108960
     Radu
    Moderator

    Hi

    Please add this function to your kleo child functions.php ( wp-content/themes/kleo-child/functions.php )

    COPY CODE
    
    function kleo_set_default_sidebar($name) {
        if(get_the_id()){
            $post_id = get_the_id();
            $selected_sidebar_replacement = get_post_meta($post_id, 'sbg_selected_sidebar_replacement', true);
            if( isset($selected_sidebar_replacement[0]) && $selected_sidebar_replacement[0] === 0 ){
                return "WooDemoShop1";
            }
        }
        return $name;
    }
    add_filter('kleo_sidebar_name', 'kleo_set_default_sidebar');
    

    Rename WooDemoShop1 to your desired sidebar that you want to be default.

    That’s all, kleo child needs to be activated.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?