-
Author
-
March 1, 2016 at 22:21 #107909vekhaParticipant
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
March 2, 2016 at 17:43 #108037RaduModeratorHello,
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 solutionMarch 3, 2016 at 08:42 #108203vekhaParticipantHi 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.March 7, 2016 at 16:17 #108960RaduModeratorHi
Please add this function to your kleo child functions.php ( wp-content/themes/kleo-child/functions.php )
COPY CODEfunction 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 -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.