Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Right sidebar doesn't show up
New Landing › How can we help? › Atelier › Right sidebar doesn't show up
- This topic has 4 replies, 2 voices, and was last updated 8 years by Mohammad – SUPPORT.
-
Posted in: Atelier
-
March 9, 2016 at 11:05 am #254326
Hi there,
We’ve recently migrated a blog from one website to another. The migration worked perfectly, only the right sidebar doesn’t appear to be displayed as default on all the post. When i look into the post ‘and theme options’ the default meta options already are set to ‘right sidebar’ ‘sidebar two’.
When i update the page the rightsidebar will magically appear. We can manually update all the post, but we have over more then 900 posts. That will take forever to complete. Can you help us?
Steps we’ve already did to fix the problem
- We’ve already updated WordPress to the latest version
- Updated the database
- Installed multiple plug-ins tofix the right sidebar
- Testing with a clean installation
- Recovered the permalinks
- Resetted the theme options
Example empty sidebar: http://ktc.designkapitein.nl/andere-koek-duchess/
Example updated post: http://ktc.designkapitein.nl/the-lab/Maybe you can help us! Thanks ๐
Attachments:
You must be logged in to view attached files.March 9, 2016 at 2:39 pm #254420Hi,
Please paste this code at functions.php of child theme.<?php function sf_post_right_sidebar() { global $post, $sf_options; $right_sidebar = sf_get_post_meta( $post->ID, 'sf_right_sidebar', true ); $default_right_sidebar = $sf_options['default_post_right_sidebar']; if ( $right_sidebar == "" ) { $right_sidebar = $default_right_sidebar; } $sidebar_width = ""; if ($sf_options['sidebar_width'] == "reduced") { $sidebar_width = apply_filters( 'sf_post_sidebar_width', 'col-sm-3' ); } else { $sidebar_width = apply_filters( 'sf_post_sidebar_width', 'col-sm-4' ); } ?> <aside class="sidebar right-sidebar <?php echo esc_attr($sidebar_width); ?>"> <div class="sidebar-widget-wrap sticky-widget"> <?php /** * @hooked - sf_post_details - 10 **/ do_action( 'sf_post_before_right_sidebar' ); ?> <?php dynamic_sidebar( $right_sidebar ); ?> <?php do_action( 'sf_post_after_right_sidebar' ); ?> </div> </aside> <?php } ?>
Thanks
MohammadMarch 9, 2016 at 2:40 pm #254421Hi,
Please paste this code at functions.php of child theme.<?php function sf_post_right_sidebar() { global $post, $sf_options; $right_sidebar = sf_get_post_meta( $post->ID, 'sf_right_sidebar', true ); $default_right_sidebar = $sf_options['default_post_right_sidebar']; if ( $right_sidebar == "" ) { $right_sidebar = $default_right_sidebar; } $sidebar_width = ""; if ($sf_options['sidebar_width'] == "reduced") { $sidebar_width = apply_filters( 'sf_post_sidebar_width', 'col-sm-3' ); } else { $sidebar_width = apply_filters( 'sf_post_sidebar_width', 'col-sm-4' ); } ?> <aside class="sidebar right-sidebar <?php echo esc_attr($sidebar_width); ?>"> <div class="sidebar-widget-wrap sticky-widget"> <?php /** * @hooked - sf_post_details - 10 **/ do_action( 'sf_post_before_right_sidebar' ); ?> <?php dynamic_sidebar( $right_sidebar ); ?> <?php do_action( 'sf_post_after_right_sidebar' ); ?> </div> </aside> <?php } ?>
Thanks
MohammadMarch 9, 2016 at 9:23 pm #254540It worked! Thank you!!! ๐
March 10, 2016 at 7:27 am #254569Hi,
Glad ๐ to help you.
Thanks
Mohammad -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.