New Landing How can we help? Atelier Right sidebar doesn't show up

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Atelier
  • #254326
    BuroNCP
    Member
    Post count: 33

    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.
    #254420
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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
    Mohammad

    #254421
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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
    Mohammad

    #254540
    BuroNCP
    Member
    Post count: 33

    It worked! Thank you!!! ๐Ÿ˜€

    #254569
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad ๐Ÿ™‚ to help you.
    Thanks
    Mohammad

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register