Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1072094

    Hi there. I have a really specific issue that I’m hoping someone can advise me on. I’m using the after_theme_setup() hook in WordPress to replace WooCommerce product information tabs with an Enfold accordion. I build the contents of the accordion in PHP and then output it using a function. The function is called using after_theme_setup() and WooCommerces woocommerce_single_product_summary action. It builds the properly formatted Enfold shortcodes for the accordion and then echos the results inside a call to do_shortcodes(). It was working like a charm until recently when we updated from 4.3.something (I think) to 4.5.4. Now, my code only works if the product’s description also includes a shortcode.

    I’ve tested this situation by having my code output text before and after the shortcode is built/processed so I know that the function is still being called. I have echoed the shortcode I built in the form of plain text and that works fine as well. But the do_shortcode() call returns nothing. Again, unless the product description includes another shortcode.

    If I had to guess, this is related to the relatively new performance features for disabling template builder elements. Before you ask, that feature is set to “Always load all elements” in Theme Options. Again, if I had to guess, I would say that Enfold is only loading its builder elements capability if the content contains another shortcode.

    Can someone on the Enfold team give me some sort of suggestion on how to make this work again?

    Thanks!
    Kevin

    #1073749

    Hey Kevin,
    Sorry for the late reply, we recently had a issue with shortcodes not working on some pages & widgets, I wonder if this is related.
    In the Private Content area please find a new version of Enfold with a patch applied, please try installing it to see if this corrects your issue.

    Please follow these steps, extract the zip and upload via FTP to your theme folder as “enfold-new”, then change your current theme folder to “enfold-old”, then change this one to “enfold” and refresh your site and check for the error.
    If your site crashes, change the new one back to “enfold-new” and your old one back to “enfold”
    If all goes well and it solves the error, and you are happy, then delete “enfold-old” via FTP – Not through the WordPress theme settings.

    Best regards,
    Mike

    #1073772

    Hi,
    i’m using avia shortcodes in a custom archive page by do_shortcode(…). After the last Update these shortcodes are not working any more – even if i turn on elements on all pages. Could this patch help me too? please let me try ;-)

    best regards, machiel

    • This reply was modified 2 years, 1 month ago by  dermachiel.
    #1073784

    Hi,
    Perhaps it will help, please follow the steps above so you will be able to recover if it crashes your site

    Best regards,
    Mike

    #1074063

    Thanks! That worked for me!

    #1074083

    Hi,
    @dermachiel glad to hear :)

    @kevinmcgillivray did the patch work for you? Shall we close this then?

    Best regards,
    Mike

    #1074527

    This seams to have solved the problem. But can you give me an explanation for what happened? Will this patch be added to the next release of the theme? Thanks!

    Also, you mentioned a private content link above. There’s no link in the discussion thread. I received it in email, though, when you sent it to @dermachiel.

    #1074625

    Hi,
    I’m glad this helped, this will be included in the next update. I can’t explain what the issue was, but the dev team was able to solve it.
    I assume we can close this now, but I like to ask. Shall we close this then?

    Best regards,
    Mike

    #1075098

    I’m having the same issue with Theme shortcuts on all our events pages. This is causing us a real issue. Is there a fix?

    #1075133

    @mike, this issue appears to be closed for me but it looks like at least one other people is having similar problems. Thanks!

    #1075155

    Could really do with a fix for this ASAP

    #1075225

    Hi,
    @Robert, Please include a admin login & FTP access in the Private Content area so we can assist, But I recommend starting a new thread as the is not your thread so your login info won’t be private here.
    Please post the link here to your new thread so I can find it.

    Best regards,
    Mike

    #1076416
    #1076519

    Hi,
    @Robert thanks I replied there, let’s continue there.

    Best regards,
    Mike

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

You must be logged in to reply to this topic.