Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1301349
    fantasy_5
    Participant

    Hi!

    I have been racking my brain trying to figure out how to get my widgets to appear to the right of the blog content on my blog posts page. Currently, I am using the three column masonry full-width layout and have made the adjustment in the customize, layout & design, content left & sidebar right. However. I have not achieved the desired result. I would like the widgets to appear only on the main posts page https://shopatkei.com/fashion-addict and not on single posts as I would like for those to remain full screen. I have the widgets set in place already, but they are not appearing on the page. Please help. Also, I would like to change the olark chat box colors and text is this possible? Thanks in advance for your assistance.

    #1301356
    fantasy_5
    Participant
    This reply has been marked as private.
    #1301412
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the information. To have a sidebar in the blog index and make sure that it is fullwidth in single post pages, please add the following code in your child theme’s functions.php file

    // Make sure that only the blog indes has the sidebar
    // and no sidebar on single posts
    // =============================================================================
    function no_sidebars_on_post($contents) {
      if ( is_single() ) {
        $contents = 'fullwidth';
      } else {
        $contents = 'content-sidebar';
      }
      
      return $contents;
    }
    add_filter('x_option_x_layout_content', 'no_sidebars_on_post', 5);
    // =============================================================================

    And please make sure that you selected Global Post layout for your blog index in the customizer as shown here: http://prntscr.com/dmh6lu

    Hope this helps.

    #1301712
    fantasy_5
    Participant

    Hi, Rue Nel!

    Thanks for your help. The code you provided definitely changed the look of the blog index page. That is exactly what I want, but for some strange reason the widgets aren’t appearing in the sidebar of the blog page, but I have them there on the widgets back end.

    #1302170
    Rad
    Moderator

    Hi there,

    Please update the code to this

    // Make sure that only the blog indes has the sidebar
    // and no sidebar on single posts
    // =============================================================================
    function no_sidebars_on_post($contents) {
      if ( is_home() ) {
        $contents = 'content-sidebar';
      } elseif ( is_singular('post') ) {
        $contents = 'fullwidth';
      }
      
      return $contents;
    }
    add_filter('x_option_x_layout_content', 'no_sidebars_on_post', 5);
    // ===================================================================

    And I like to check your sidebar but it won’t let me login using the provided credentials. It always says this “Sorry Charlie try again.”

    For the meantime, make sure you assigned your sidebar on your blog at Admin > Appearance > Sidebars.

    Thanks!

    #1302277
    fantasy_5
    Participant
    This reply has been marked as private.
    #1302496
    Rue Nel
    Moderator

    Hello There,

    I have investigated your site and it turns out that you have added Widget Logic and that you added is_page(191) as a condition. This condition will only work if and only if the page is an ordinary page. But then since you have assigned this page as you Post Page, you will need to change your condition to is_home(). So I went ahead and changed the conditions. Now, all your sidebar widgets is displayed correctly.

    If you need anything else we can help you with, please let us know.

    #1302775
    fantasy_5
    Participant

    Hi, Rue Nel!

    Thanks it looks great and is exactly what I want. Only one issue some of the widgets are there, but not showing up i.e. google plus widget, and add to any follow widget. However the add to any follow widget is working just fine one my contact page. Anymore ideas?

    #1302793
    fantasy_5
    Participant

    Add to any follow widget is now appearing and I have used another method to add google plus widget. Everything works beautifully now. Thanks again. πŸ™‚

    #1302862
    Joao
    Moderator

    Glad to hear it πŸ™‚

    Happy Holidays!

    #1302863
    Joao
    Moderator

    Glad to hear it πŸ™‚

    Happy Holidays!

    #1309376
    fantasy_5
    Participant

    Hi!

    I am still working out the kinks of how the blog displays and sidebars. I was trying to figure out the CSS to use in order to remove blog posts tags. I would like to use them for SEO purposes, but am not pleased with the display. I tried this code, but no luck. Also, the comment bubble does not appear on all blog posts only on one so far.

    .footer.entry-footer.cf {display:none;}

    Also, I am trying to get the sidebar to display on this page. but it isn’t showing up. Your assistance will be greatly appreciated. The page in question can be found here.

    Become a VIP Member by Subscribing Now

    #1309637
    Rue Nel
    Moderator

    Hi!

    Thanks for updating in! The css code should only be this:

    footer.entry-footer.cf {
      display:none;
    }

    Regarding the comments, please make sure that the comments are open. I mean please see to it that comments are allowed on the posts. The comments section will also automatically closed if you have set it in the settings. Please go to Settings > Discussions > Automatically close comments on articles older than xx days. In your case, 60 days. http://prntscr.com/dpmtdt

    The sidebar is displaying on the page. The problem is that most of widgets (using Widget Logic) has a condition that a widget will only display if it is is_page(191) or is_page(354). You may add another widget only for the mentioned page or maybe have a widget that will be displayed in all pages when a sidebar is being displayed.

    Hope this explains it.

    #1310717
    fantasy_5
    Participant

    Hi, Rue Nel!

    That did the trick with the tags. Thank you. As for the widget logic page number. It is is_page(828) and that is the become a v.i.p. member page number. It’s just not appearing in the sidebar of that particular page. This particular widget is a subscription box. It’s the last widget in the what’s the 411 custom sidebar. Also, the title on smaller screens is cut off when it’s a lengthy word for blog headers is there a way to adjust this?

    #1310791
    Rue Nel
    Moderator

    Hello There,

    Since you have installed Widget Logic, when you want a widget to display in two specific page, you can have a condition like this:

    
    is_page(191) || is_page(828)

    To avoid from being cut off, You can apply the responsive text and manage it in Settings > Responsive Text. To know more about responsive text, please check it here: http://demo.theme.co/integrity-1/shortcodes/responsive-text/

    Hope this helps.

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