Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1321366
    anzezala
    Participant

    Hello,
    i would like to build a custom sidebar on my woocommerce shop page. I have tried to make a sideabr and then add it to shop but for some reason it doesn’t work. If you could please help me. I am trying to make different categories for my products.
    my webpage: http://zalc.si/trgovina/

    Best regards Anže.

    #1321484
    Nico
    Moderator

    Hi There,

    Thanks for writing in .

    You could check the link below on how to add sidebar to shop page.

    https://community.theme.co/forums/topic/how-to-add-sidebar-to-shop-pages-in-woocommerce/

    Hope it helps.

    Let us know how it goes.

    Thanks.

    #1322093
    anzezala
    Participant

    Hi,
    i did everything on that post and it worked but the sidebar is under all the products. I attached the image of how it looks. Also i would like that when i chose i category the sidebar menu is still there, but i couldn’t achive that. If you could help me with these problem and i was wondering if there is a chance that we make the text more appealing with different colors or some boxes with the text in them.
    My webpage: http://zalc.si/trgovina/

    Thanks

    #1322131
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global CSS in the Customizer.

    
    .post-type-archive-product.woocommerce .x-main.full {
        float: right;
        display: block;
        width: 69.536945%;
        margin-left: 4%;
    }
    

    Hope that helps.

    #1322208
    anzezala
    Participant

    Yes it helps, but i would like that i would have the sidebar menu when i click a certain category to. Also if you could help me with the styling of the sidebar menu would be great.

    #1322233
    Christopher
    Moderator

    Hi there,

    To add sidebar, please check this link https://community.theme.co/kb/unlimited-sidebars
    In regards with styling sidebar, let us know how would you like to customize it.

    Hope it helps.

    #1322375
    anzezala
    Participant

    Hi,
    i looked at the post you sent me, but no luck. I don’t have the sidebar menu on the categorie pages only on the main shop page.
    I have added screenshots of the pages i would like to have the sidebar on and how my sidebar looks like.

    #1322803
    Nico
    Moderator

    Hi There,

    Would you mind sharing us your admin credentials so we could check your setup closer.

    Don’t forget to set it as private reply.

    Please share us again the sidebar that you want to achieve so that we could know that if we could do it or if it is beyond to scope of our limitation. In case it is not beyond our scope, we’ll do our best help you.

    Thanks.

    #1322830
    anzezala
    Participant
    This reply has been marked as private.
    #1323410
    Christopher
    Moderator

    Hi there,

    You’ve assigned ‘Klasifikacija izdelkov’ sidebar to archive pages but this sidebar is empty, please add some widgets. Also you need to change content layout under Customize -> Layout and design to Sidebar Left, Content Right or Content Left, Sidebar Right.

    Hope it helps.

    #1329820
    anzezala
    Participant

    Hi,
    I did everything you said but no luck. The products moved to the side but i still don’t have the menu. I would like the same menu as on the shop page to be on the categorie pages. Aded a widget and also changed the layout and design but no luck. Any other suggestions?

    #1329840
    Christopher
    Moderator

    Hi there,

    Please update theme and plugins.
    Remove following code from child theme’s functions.php :

    // Additional Functions
    // =============================================================================
    
    function x_my_custom_widgets_init() {
    
      register_sidebar( array(
        'name'          => __( 'My Shop Sidebar', '__x__' ),
        'id'            => 'sidebar-my-custom-shop',
        'description'   => __( 'Appears on the index shop page.', '__x__' ),
        'before_widget' => '<div id="%1$s" class="widget %2$s">',
        'after_widget'  => '</div>',
        'before_title'  => '<h4 class="h-widget">',
        'after_title'   => '</h4>',
      ) );
    
    }
    
    add_action( 'widgets_init', 'x_my_custom_widgets_init' );
    

    Hope ti helps.

    #1330158
    anzezala
    Participant

    Hi, did what you said but it didn’t work. I need this code, otherwise the sidebar doesn’t even show on the main shop page. I would like that the menu also shows on my categorie pages. Example: I go to my shop page and want to select a categorie. I click categorie Aronija and it opens products from that categorie but than i want the same sidebar as on the main shop page to be dispalyed on the categorie page.

    #1330515
    Christopher
    Moderator

    Hi there,

    Please provide us with FTP credentials.

    Thanks.

    #1330767
    anzezala
    Participant

    Hi,
    i don’t know why would you need my FTP credentials. I think the problem is in the php code. Maybe if you could just alter it and add so the sidebar would be displayed in taxonomies. Because now it is only visible in my shop index page. I am refering to this line ‘description’ => __( ‘Appears on the index shop page.’, ‘__x__’ ),

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