Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #27880

    Hello,

    I want to use a short-code in a Promo Box, but it does not render.

    I’ve used one of your short-codes with the insert short-code button, and it doesn’t render, also I’ve created my own short-code, and it doesn’t render either, it just displays the short-code on the front-end.

    Here is a screen-shot: http://www.red187.nl/tmp/enfold_issue.png

    I’m using enfold child.

    I hope you can help me.

    Regards, Jeffrey

    #135690

    Hi,

    I just tested the drop caps with a child theme and they displayed without a problem. What version of the theme are you using? Please update since the updates are released very frequently.

    Thanks,

    Nick

    #135691

    Hi Nick,

    Thanks for responding. I just downloaded the latest version from ThemeForest to be sure I have the latest version. But unfortunately it still does not work. The shortcode works on other places, but not in the Promo Box, on other places the shortcode does work. It looks like it doesn’t execute do_shortcode() over there. Below some info that may help.

    I hope this helps, thanks!

    <!–

    Debugging Info for Theme support:

    Theme: Enfold

    Version: 1.8.4

    Installed: enfold

    AviaFramework Version: 1.8.2

    AviaBuilder Version: 0.3.1


    ChildTheme: Enfold Child

    ChildTheme Version: 1.0

    ChildTheme Installed: enfold

    ML:128-PU:48-PLA:5

    –>

    #135692

    Hi,

    Please download the latest version of theme which is Enfold 2.0. Upgrade to WordPress 3.6.

    Regards,

    Ismael

    #135693

    Hi,

    I’ve upgraded WP to 3.6 and updated the theme, but still no go….

    Kind Regards,Jeffrey

    <meta name=”generator” content=”WordPress 3.6″ />

    <!–

    Debugging Info for Theme support:

    Theme: Enfold

    Version: 2.0.1

    Installed: enfold

    AviaFramework Version: 1.8.2

    AviaBuilder Version: 0.3.1


    ChildTheme: Enfold Child

    ChildTheme Version: 1.0

    ChildTheme Installed: enfold

    ML:128-PU:49-PLA:5

    –>

    #135694

    Hey,

    Please switch your theme to debug mode. Edit function.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Below, add this code:

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    return "debug";
    }

    You will be able to see the actual shortcode below the builder. Shortcodes can be combine then, like this example. A combination of Promobox shortcode plus the Button shortcode:

    [av_promobox button='yes' label='Click me' link='single' link_target='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' size='large' icon_select='no' icon='25']
    Welcome Stranger! This is an example Text for your fantastic Promo Box! Feel Free to delete it and replace it with your own fancy Message!
    [av_button label='Click me' link='' link_target='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' size='small' position='center' icon_select='yes' icon='25']
    [/av_promobox]

    Regards,

    Ismael

    #135695

    Hey,

    Sorry my bad. It is not working when using the Promo Box. Please use the actual html generated by each shortcode. This is the code generated by a button shortcode for example:

    <div class="avia-button-wrap avia-button-center avia-builder-el-1 avia-builder-el-no-sibling "><a href="" class="avia-button avia-icon_select-yes avia-color-theme-color avia-size-small avia-position-center "><span class="avia_button_icon avia-font-entypo-fontello">♥</span><span class="avia_iconbox_title">Click me</span></a></div>

    Regards,

    Ismael

    #135696

    Hi Ismael,

    Thanks for confirming, so it is a bug, I hope it will be fixed in the next release. Any idea when that’s going to happen?

    For now I use the workaround, end use the actual generated html code.

    Thanks for your help!

    #135697

    Hi Ismael,

    After digging into the code I found the problem, it is a minor issue, just apply do_shortcode before returning the content.

    It is located in: /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/promobox.php

    Line: 263

    Change:return$output;

    To: return do_shortcode($output);

    That did the trick for me. I hope you can use this bug fix for the next release. Also my complements on the nice clean code, keep up the good job!

    Regards, Jeffrey

    #135698

    Hey,

    Thanks for the tip. I’ll tag Kriesi then request an update. :)

    Cheers,

    Ismael

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

The topic ‘Shortcode doesn't render in promobox’ is closed to new replies.