Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #991547
    drmodiho
    Participant

    Hello,

    I try to set my custom sidebar “recent blog posts” on my blogpage to be static the same throughout all posts, as well as catagories and archives. With the custom sidebar I dont know how to make that possible.

    This method didn’t work either: Adding widgets to the “Main Sidebar”. However the sidebar only displays on the posts, catagories, archieve but NOT on the main blog index page. On the blog index page will still be the custom sidebar.

    Hope I was able to discribe properly what the issues are.

    Thanks in advance for any help.

    Best regards,

    Moritz

    #991549
    drmodiho
    Participant
    This reply has been marked as private.
    #991844
    Rue Nel
    Moderator

    Hello Moritz,

    As each Stack includes it’s own unique set of features and functionality, not all of the will allow you to accomplish the same things. The functionality that you’re describing is not something that is possible with the Integrity Stack (the fixed top navbar is, but not a fixed sidebar), but Icon has a unique sidebar which remains fixed on the page, and then when you hover over it you can scroll up and down. This sounds perfect for what you are trying to accomplish.

    Additionally, we have lots of information on this in the documentation (https://community.theme.co/kb/), as well as videos in our Video Tutorial section which go over all of this in much greater detail. Make sure to check those out if you haven’t done so already.

    Thank you for your understanding.

    #995629
    drmodiho
    Participant

    Thanks for your answer.

    Unfortunately this was not what I was looking for. I am trying to set the sidebar to remain the same on the blog index as well as on each post page and archive page.

    At the moment, my custom sidebar only appears on my blog index page. On each post page for example, the sidebar changes.

    Hope you understand what I mean.

    Thanks in advance again for any help.

    Best regards,

    Moritz

    #995954
    Jade
    Moderator

    Hi Moritz,

    You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    Let us know how it goes.

    #996013
    drmodiho
    Participant

    Hey, I guess this is not related to any plugin conflicts. I guess it just needs to be set the right way.

    What I try to do is the following:

    – there are two sidebars (Appearance > Widget) I can choose in between. “Main sidebar” and my “Custom sidebar (Recent blog posts)”. The main sidebar seems to appear on all post related pages (post pages, archieves, catagorie pages, ect.). The custom sidebar appears only on the Blog index page.

    My question is the following: How can I achieve, that my “Custom Sidebar” appears on Blog index page as well as on ALL other post related pages? So there will only appear one sidebar on all of these pages.

    Please find the attached screenshots.

    Thanks in advance for any help.

    Best regards,

    Moritz

    #996482
    Lely
    Moderator

    Hello Moritz,

    Thank you for the clarification.
    Please copy the file wp-sidebar.php from wp-content/themes/x/framework/views/integrity to wp-content/themes/x-child/framework/views/integrity.
    Then open the copied file and replace the entire content with the following:

    
    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-SIDEBAR.PHP
    // -----------------------------------------------------------------------------
    // Sidebar output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php if ( x_get_content_layout() != 'full-width' ) : ?>
    
      <aside class="<?php x_sidebar_class(); ?>" role="complementary">
        <?php if ( get_option( 'ups_sidebars' ) != array() ) : ?>
    	<?php 
    		$categories = get_the_category($post->ID);
    		$existing_cat = array();
    		if ( ! empty( $categories ) ) {
    			foreach( $categories as $category ) {
    			$existing_cat[] = $category->category_nicename;
    			}
    			dynamic_sidebar( apply_filters( 'ups_sidebar', 'ups-sidebar-recent-blog-posts' ) ); 
    		}
    	?>
        <?php else : ?>
          <?php dynamic_sidebar( 'sidebar-main' ); ?>
        <?php endif; ?>
      </aside>
    
    <?php endif; ?>

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-991547 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>