Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1180058
    Quantum
    Participant

    Hello,
    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.au

    #1180063
    Nabeel A
    Moderator

    Hi 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!

    #1180093
    Quantum
    Participant

    Yes 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/

    #1180103
    Thai
    Moderator

    Hi 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-sidebar with your blog sidebar ID.

    Hope it helps 🙂

    #1180505
    Quantum
    Participant

    Thanks – works fine! 🙂

    #1180749
    Rad
    Moderator

    You’re welcome

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