-
AuthorPosts
-
March 11, 2019 at 4:31 am #1077196
Hey guys
I’ve recently updated to 4.5.4 and found that theme shortcodes ( such as av_toggle_container ) are not working on WooCommerce product pages. We’re adding in a couple of blocks onto the product page and using the Enfold shortcodes to display the content ( e.g. an accordion ). I found this thread: https://kriesi.at/support/topic/theme-shortcodes-not-working-in-learndash-lessons/ where a user was having the same issue. The team mentioned they found a bug and released a specific version to that user. Is this fix going to become publicly available soon? Would be great if a path updated was released with at least this fix. For now I’ve rolled back to 4.5.1 which is what we had before I upgraded.
Thanks!
March 12, 2019 at 9:23 pm #1077983Hey twitchdevelopment,
What blocks are you referring to? Are you using Gutenberg?
Best regards,
VictoriaMarch 12, 2019 at 9:43 pm #1077993Hey Victoria
Maybe blocks was the wrong word, should have said “hooks”. If I run this code:
add_action('woocommerce_after_single_product_summary', 'display_custom_tabs', 13); function display_custom_tabs() { echo do_shortcode("[av_toggle_container initial='0' mode='accordion' sort='' styling='' colors='' font_color='' background_color='' border_color='' hover_colors='' hover_background_color='' hover_font_color='' colors_current='' font_color_current='' background_current='' background_color_current='' background_gradient_current_color1='' background_gradient_current_color2='' background_gradient_current_direction='vertical' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av_uid=''] [av_toggle title='Toggle 1' tags=''][/av_toggle] [av_toggle title='Toggle 2' tags=''][/av_toggle] [/av_toggle_container]"); }
Nothing displays. The shortcode above is for the Accordion Advanced Layout Builder element.
This is using Enfold 4.5.4 and WooCommerce 3.5.6. If I roll back to Enfold 4.5.1 the above code works.
Cheers
March 14, 2019 at 12:22 am #1078452Hey guys, any update here?
I’ve just been building a separate site and noticed the same issue come up on a custom post type. I’m guessing there must be something stopping avia elements from rendering on anything except posts and pages?
March 17, 2019 at 7:01 pm #1079692Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
BasilisMarch 18, 2019 at 2:52 am #1079756Hey guys
I’ve uploaded two versions of enfold to my site ( credentials below ). The current one is 4.5.4, just re-downloaded today. The other is 4.5.1 which is the only other copy I had that wasn’t on 4.5.4. Take a look at the functions.php file in the child theme. It’s pretty basic, just to demo this bug. If you take a look at the product page referenced below you’ll see that the content within “do_shortcode” is not working. However, if you rename “wp-content/themes/enfold” to “wp-content/themes/enfold-dis” and “wp-content/themes/enfold-4-5-1” to “wp-content/themes/enfold” you’ll see that it renders correctly.
Let me know if you need any more information.
Cheers
March 21, 2019 at 5:59 am #1081161Hi guys
Sorry to keep nagging, but this is a “breaking” change in the latest version of the theme, any update so far?
Cheers
March 21, 2019 at 6:40 am #1081184Hi,
We would like to apologize for the delay.
The latest version 4.5.5 has been released recently and it contains a fix for shortcodes used outside the advance layout builder. Please upgrade the theme to the latest version.
Best regards,
IsmaelMarch 22, 2019 at 12:42 am #1081620Awesome, thanks heaps guys, really appreciate it!
March 22, 2019 at 12:50 am #1081623Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Theme shortcodes not working on WooCommerce product pages’ is closed to new replies.