Tagged: x
-
AuthorPosts
-
September 18, 2016 at 6:00 am #1180058
QuantumParticipantHello,
i have searched the forum and tried a lot of the codes supplied but cant seem to get it to work… I want teh main sidebar to show on the single product pages which i have been able to achieve – but now i have created a custom sidbar for the blog and blog posts but they wont show up. Can you help?
http://www.qmk.com.auSeptember 18, 2016 at 6:15 am #1180063
Nabeel AModeratorHi there,
Thanks for writing in! Did you enable sidebar on blog index page? To display your custom sidebar on blog page you need to enable it first on the blog index page (see attachment)
Let us know how this goes!
September 18, 2016 at 7:13 am #1180093
QuantumParticipantYes have done that… It shows on the main blog page http://qmk.com.au/blog/ but not on the posts pages http://qmk.com.au/exhibition-ideas/keeping-ahead-of-exhibitors/
September 18, 2016 at 7:37 am #1180103
ThaiModeratorHi There,
Please add the following code under functions.php file locates in your child theme:
add_filter( 'ups_sidebar', 'x_custom_sidebar' ); function x_custom_sidebar($sidebar){ if(is_singular( 'post' )){ return 'ups-sidebar-blog-sidebar'; } return $sidebar; }Replace the
ups-sidebar-blog-sidebarwith your blog sidebar ID.Hope it helps 🙂
September 18, 2016 at 5:29 pm #1180505
QuantumParticipantThanks – works fine! 🙂
September 18, 2016 at 9:20 pm #1180749
RadModeratorYou’re welcome
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1180058 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
