Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1164661

    Hi,

    Does anyone know how to keep the sidebar as it is when a category is clicked?
    https://www.gregorybeylerian.com/shop/

    As it is now , a whole bunch of category and archived links pop up in the sidebar.

    Any assistance on resolving this would be really appreciated!

    GB

    #1164719

    Hi GB,

    Yes, if I’m not mistaken your shop sidebar is fetching from Shop Overview Pages (in Appearance > Widgets).
    So just put the same widgets under Single Product Pages (widget area).
    Hope this helps.

    Best regards,
    Nikko

    #1165028

    Ahhh, thanks so much Nikko.
    I got it to work for The Shop Overview Pages. However it seems I could not get it to work for each single product page as I got a notice that says the sidebar could only be utilized if I activate the Advanced Layout Editor. But if I do that WooCommerce says it will not work well and it did not when I tried activating.

    So I am fine not to have a side bar on single product pages unless you have idea around that?

    THANKS!

    GB

    #1165273

    Hi GB,

    If you’re using Advanced Layout Editor, you’ll need to use Widget Area element.
    If you’re using Default Editor, you ca go to (in the product page backend) Layout > Sidebar Setting > Shop Overview Page.
    Let us know if this helps.

    Best regards,
    Nikko

    #1165633

    Hi Nikko,

    I am using the default Editor and so when I do as you say and go to ” (in the product page backend) Layout > Sidebar Setting > Shop Overview Page.”

    It puts the sidebar under the product. Here is a link to one product page showing this issue:

    Any ideas?

    #1166214

    Hi,
    Sorry for the late reply, we do have some code that will allow you to have a right sidebar on a single product page, but it works best if your page is full width.
    2019-12-15-191113
    If you would like to try it out, Please add this code in the General Styling > Quick CSS field:

    /*add right sidebar to woo product page*/
    .single-product-main-image {
        width: 25%;
    }
    
    .single-product-summary {
        overflow: hidden;
        width: 40%;
        float: left;
        margin-right: 5%;
    }
    
    .single-product .sidebar {
        width: 35%;
    }

    Then add this code to the end of your functions.php file in Appearance > Editor:

    add_action('init','ava534345953_init', 50);
    function ava534345953_init() {
    	add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar', 25);
    }
    
    function avia_close_image_div() {
    	global $avia_config;
    	echo "</div>
    ";
    }
    
    function avia_add_sidebar() {
    	if(is_product()) {
    	$avia_config['currently_viewing'] = "shop_single";
    	get_sidebar();
    	}
    }

    Best regards,
    Mike

    #1166219

    Hey Thanks Mike,

    Ill keep it full page then,

    All the best and happy holidays!

    GB

    #1166286

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘My shop sidebar changes when a category is clicked?’ is closed to new replies.