February 27, 2019 at 1:02 am #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
woocommerce_single_product_summaryaction. 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?
March 2, 2019 at 10:27 pm #1073749
- This topic was modified 2 years, 1 month ago by kevinmcgillivray.
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.
MikeMarch 2, 2019 at 11:06 pm #1073772
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
March 2, 2019 at 11:54 pm #1073784
- This reply was modified 2 years, 1 month ago by dermachiel.
Perhaps it will help, please follow the steps above so you will be able to recover if it crashes your site
MikeMarch 3, 2019 at 11:02 pm #1074063March 3, 2019 at 11:59 pm #1074083March 4, 2019 at 9:36 pm #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.March 5, 2019 at 4:23 am #1074625
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?
MikeMarch 5, 2019 at 9:55 pm #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?March 5, 2019 at 10:49 pm #1075133
@mike, this issue appears to be closed for me but it looks like at least one other people is having similar problems. Thanks!March 5, 2019 at 11:31 pm #1075155March 6, 2019 at 3:18 am #1075225
@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.
MikeMarch 8, 2019 at 4:23 pm #1076416
Hey Mike thanksMarch 9, 2019 at 1:48 am #1076519
You must be logged in to reply to this topic.