Tagged: x
-
AuthorPosts
-
December 21, 2016 at 9:53 pm #1301349
fantasy_5ParticipantHi!
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-addictand 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.December 21, 2016 at 10:01 pm #1301356
fantasy_5ParticipantThis reply has been marked as private.December 21, 2016 at 11:51 pm #1301412
Rue NelModeratorHello 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.
December 22, 2016 at 8:34 am #1301712
fantasy_5ParticipantHi, 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.
December 22, 2016 at 6:26 pm #1302170
RadModeratorHi 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!
December 22, 2016 at 7:13 pm #1302277
fantasy_5ParticipantThis reply has been marked as private.December 23, 2016 at 12:08 am #1302496
Rue NelModeratorHello 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 tois_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.
December 23, 2016 at 8:55 am #1302775
fantasy_5ParticipantHi, 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?
December 23, 2016 at 9:26 am #1302793
fantasy_5ParticipantAdd to any follow widget is now appearing and I have used another method to add google plus widget. Everything works beautifully now. Thanks again. π
December 23, 2016 at 10:55 am #1302862
JoaoModeratorGlad to hear it π
Happy Holidays!
December 23, 2016 at 10:56 am #1302863
JoaoModeratorGlad to hear it π
Happy Holidays!
December 29, 2016 at 9:16 pm #1309376
fantasy_5ParticipantHi!
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.
December 30, 2016 at 3:09 am #1309637
Rue NelModeratorHi!
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.
December 30, 2016 at 11:33 pm #1310717
fantasy_5ParticipantHi, 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?
December 31, 2016 at 2:20 am #1310791
Rue NelModeratorHello 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1301349 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
