Home>Support>Accordion widget

Accordion widget

Hello,

I’m testing out the accordian widget on a product page. Here is a page I was testing it out on:

https://www.1st-line.com/buy/vibiemme-domobar-original-espresso-machine/

I made a copy so I can test out the widget. I got all the information set up in the appropriate fields. The problem is it came out all weird if you go to the page below.

https://www.1st-line.com/buy/vibiemme-domobar-original-espresso-machine-copy/

It seems like it put itself on the page 4 different times.

Any idea what could be causing this? Or maybe it’s just my computer and it looks good for everyone else?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Gregg,

    Can you please elaborate on how you made a copy of the widget?
    Also, would it be possible for you to send me an export of the linked page? To do this please open up the linked page in the editor and click the Layout button in the Page Builder toolbar. Then click import/export and then click download. Please upload the export to a 3rd party file hosting site such as teknik.io.

  2. 5 years, 11 months ago Gregg

    Hi Alex,

    I just duplicated the product and made it hidden from categories and the search bar.

    I exported the layout. I tried signing up on teknik.io but it says I need an invite code.

  3. 5 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Gregg,

    Oh! Sorry about that, it looks like they’ve changed how their system works.
    Try https://wetransfer.com/ instead.

  4. 5 years, 11 months ago Gregg

    Hi Alex,

    What email do I send the file to?

  5. 5 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Gregg,

    Please leave that field blank – you’ll be provided with a link after upload, please reply with that link.

  6. 5 years, 11 months ago Gregg

    Here is the link

    https://we.tl/t-UevOVTzIf8

  7. 5 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Gregg,

    Thanks. The provided layout is working for me without issue. I went to check the previously linked page and it appears to have been removed. Is this issue still occurring for you?

    If so, can you try disabling all non-SiteOrigin plugins and see if this fixes the issue? You’ll need to clear all your caches after disabling your plugins.

    If it does fix the issue, then try re-enabling your plugins one by one until the issue comes back. This procedure will help diagnose which plugin is causing the issue.

    Once we know that, we’ll be able to look at what might be causing the conflict and either solve the problem or help you find an alternative plugin.

    If you aren’t using a SiteOrigin theme, then you can also try temporarily switching to one of the default WordPress themes to see if the issue is theme related.

  8. 5 years, 11 months ago Gregg

    I had to hide the page because it was showing up in search results. I’m gonna try to set up our test site and try turning off all other plugins.

  9. 5 years, 11 months ago Gregg

    I found the plugin that is conflicting with the accordion widget.

    https://woocommerce.com/products/woocommerce-conditional-content/

    I have some banners and pictures that show up on product pages depending on certain conditions like price or brand. It seems that every element that loads with this plugin is replaced with the Accordion widget. That’s why it showed up in 3 other places.

    Is there a way around this? Do you have a plugin or widget that can do what this plugin does?

  10. 5 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Gregg,

    Thanks. I’ve logged this issue with the development team. I would recommend reporting this issue with the developers of that plugin also. I suspect this issue is caused by how that plugin is checking (or even using) the_content, although I’m not too sure why only the Accordion widget is affected.

    Unfortunately, we don’t have a similar plugin at this time.

  11. 5 years, 11 months ago Gregg

    I contacted the developer of the other plugin. They gave me a line of code to add to the functions.php file. I tested and it works ok now.

    They said that it will disable them calling the filter in their extension templates, however it might cause issues with the output formatting from my content block.

    The only way to know if it works 100% is to test it out wherever content blocks and Accordion widgets collide.

    Another thing I noticed is that some styling, like

    doesn’t show in the widget.

    https://www.1st-line.com/technical-support/lelit-technical-support-page/

    On the page above in the manual and the diagram sections, the lines are in a list but it doesn’t show the bullet points.

  12. 5 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Gregg,

    Great to hear! :)
    Would it be possible for you to provide me with a copy of the PHP they provided you?

    Another thing I noticed is that some styling, like

    This is happening due to theme styling. To avoid it, please navigate to WP AdminSettingsPage Builder and open the Widgets tab. Untick Add Widget Class. Please note that this may result in slight design differneces depending on how heavily your theme relies on the widget class to apply widget specific styling.

  13. 5 years, 10 months ago Gregg

    Here is the code they gave me:

    add_filter(‘woocommerce_conditional_content_apply_the_content_filter’, ‘__return_false’);

    It fixed the major issue of the Accordion Widget showing up everywhere.

    However it did affect some content blocks that have code. Specifically, parts that have shortcode.

    Example: We use this plugin: https://wordpress.org/plugins/expand-maker/
    In one content block, we have code below with Terms & Conditions in the “…” part.

    [expander_maker id=”1″ more=”Read more” less=”Read less”] … [/expander_maker]

    The extra code breaks the Read More buttons by showing everything.

    Regular html code seems to work ok like showing an image () or regular links (). Shortcode in the regular description seems to be unaffected. Only in content blocks are they not working.

    I’m gonna do more testing and adjusting until I can find a happy medium.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More