Home Forums Basel support forum Accordion without "Compact" product page design

Accordion without "Compact" product page design

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #14405

    svaldesm
    Participant

    Hello,

    I like the accordion description and shipping info tabs, but would love if they were available in another product page design, for example in default.

    Is there a way to use them in that mode?

    Thanks!

    #14410

    Artem Temos
    Keymaster

    Hi,

    Try to override the following file in your child theme basel/woocommerce/single-product/tabs/tabs.php and change this line

    $tabs_layout = (basel_product_design() == 'compact') ? 'accordion' : 'tabs';

    with this one

    $tabs_layout = 'accordion';

    Regards

    #14774

    svaldesm
    Participant

    Thanks, but that doesn’t solve my issue.
    I already tried that but it generates accordions in the “gray” area, below product image.

    I want the same as the compact view, but without the scrolling. In this case https://demo.xtemos.com/basel/shop/other/new-brands/yomber-jacket-trim/ the scroll is “fixed” in a box. I would like, if the accordion is longer, that it doesn’t have scrolling.

    That is, the “compact” design without scrolling.

    Is that possible?

    Thanks

    #14777

    Artem Temos
    Keymaster

    OK, so please enable this design and send us a link where we can see it. We will prepare a CSS fix for you.

    #14780

    svaldesm
    Participant

    Unfortunately I’m only working on local, but I’ve uploaded pictures.
    I just want to avoid that compact scrolling. I want it to flow with the regular scroll of the webpage. In mobile it works fine as I want, but in bigger screens it doesn’t

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #14785

    Artem Temos
    Keymaster

    Try to add the following code snippet to the Custom CSS in Theme Settings

    .product-image-summary .summary .basel-scroll-content {
    	overflow:visible;
    }
    
    .product-image-summary .summary  .basel-scroll {
        position: relative;
        overflow: visible;
    }
    
    .product-image-summary .summary  .basel-scroll .basel-scroll-content {
        position: relative;
        overflow: visible;
    }
    
    .product-image-summary .basel-scroll>.basel-scroll-pane {
    	display:none;
    }

    Regards

    #14788

    svaldesm
    Participant

    Thanks for the fast response. It indeed works but the scroll bar is still appearing.
    Also, could you modify the solution so that I can paste it in CSS in child theme? I prefer that.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #14792

    Artem Temos
    Keymaster

    This code removes the scroll bar as well. And you can place it to the child theme style.css.

    #14793

    svaldesm
    Participant

    I did what you told me. The last screenshot is from my local site with the code already added.

    As you can see, it is still not working. The scroll bar is still appearing. I tried deleting cache just in case and nothing.

    #14794

    svaldesm
    Participant

    Nevermind. I added “!important” and it worked.
    Thanks!

    #14795

    svaldesm
    Participant

    Is there a way to remove the scrolling completely?
    There is a plugin associated which will decrease my site’s page load and it’s not useful to me.

    It also adds a style="margin-right: -17px;" to the basel-scroll-content element.

    This is minimum but in mobile it doesn’t look centered.

    Thanks!

    #14801

    Artem Temos
    Keymaster

    Sorry, but we can prepare any fixes without looking at your website live.

Viewing 12 posts - 1 through 12 (of 12 total)