-
AuthorPosts
-
August 15, 2013 at 8:27 pm #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
August 17, 2013 at 9:04 pm #135690Hi,
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
August 19, 2013 at 6:47 pm #135691Hi 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
–>
August 20, 2013 at 4:16 am #135692Hi,
Please download the latest version of theme which is Enfold 2.0. Upgrade to WordPress 3.6.
Regards,
Ismael
August 21, 2013 at 3:24 pm #135693Hi,
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
–>
August 22, 2013 at 5:54 am #135694Hey,
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
August 22, 2013 at 5:58 am #135695Hey,
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
August 22, 2013 at 12:01 pm #135696Hi 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!
August 22, 2013 at 6:07 pm #135697Hi 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
August 23, 2013 at 5:34 am #135698 -
AuthorPosts
- The topic ‘Shortcode doesn't render in promobox’ is closed to new replies.