Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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!

    #1077983

    Hey twitchdevelopment,

    What blocks are you referring to? Are you using Gutenberg?

    Best regards,
    Victoria

    #1077993

    Hey 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

    #1078452

    Hey 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?

    #1079692

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Basilis

    #1079756

    Hey 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

    #1081161

    Hi guys

    Sorry to keep nagging, but this is a “breaking” change in the latest version of the theme, any update so far?

    Cheers

    #1081184

    Hi,

    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,
    Ismael

    #1081620

    Awesome, thanks heaps guys, really appreciate it!

    #1081623

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Theme shortcodes not working on WooCommerce product pages’ is closed to new replies.