Tagged: content slider
-
AuthorPosts
-
November 24, 2013 at 4:15 pm #192491
According to one of your mods this should be possible.
But isnt:[av_content_slider heading='' columns='1' animation='slide' navigation='arrows' autoplay='false' interval='5']
[av_content_slide title='Slide 1' link='' linktarget='']
[av_icon_box icon='ue800' font='entypo-fontello' position='top' title='IconBox Title' link='' linktarget='']
Click here to add your own text
[/av_icon_box]
[/av_content_slide]
[av_content_slide title='Slide 2' link='' linktarget='']
[av_icon_box icon='ue800' font='entypo-fontello' position='top' title='IconBox Title' link='' linktarget='']
Click here to add your own text
[/av_icon_box]
[/av_content_slide]
[/av_content_slider]RESULT:
Notice: Array to string conversion in /usr/www/users/axella/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-helper.class.php on line 286
Warning: trim() expects parameter 1 to be string, array given in /usr/www/users/axella/wordpress/wp-includes/formatting.php on line 191
Notice: Array to string conversion in /usr/www/users/axella/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-helper.class.php on line 286
Warning: trim() expects parameter 1 to be string, array given in /usr/www/users/axella/wordpress/wp-includes/formatting.php on line 191Please tell us how to fix that.
November 25, 2013 at 5:27 am #192778Hi kaMai!
That is doable with the help of this plugin: http://wordpress.org/plugins/insert-php/
Create a page then insert the Content Slider. Add then edit a slide. Go to the Visual Editor. Add this code:
[insert_php]echo do_shortcode("[av_icon_box icon='' position='left' title='IconBox Title' link='' linktarget='no'] Click here to add your own text [/av_icon_box]");[/insert_php]
The plugin requires you to insert the shortcode inside [insert_php] and [/insert_php]. We use the do_shortcode function to render the Icon Box element properly. Please try it. :)
Best regards,
IsmaelNovember 25, 2013 at 5:40 pm #193005Hi Ismael,
so your collegue was wrong as he told that it can be done?
(He did not mention a requred plugin)So: Youre answer is: “It can not be done without a plugin”
Did i understand that right?November 25, 2013 at 7:33 pm #193104Hi!
Actually it can be done with a plugin but it seems like Kriesi blocked it. I’m not sure if this limitation is intentional or just an oversight but you can definitely bypass it. In /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/contentslider.php replace
'content' => ShortcodeHelper::shortcode2array($content),
with
'content' => ShortcodeHelper::shortcode2array($content, 1),
and the content slider should process any shortcode you want to use within the content slider text. I’ll mark this thread for Kriesi in case he wants to change it in the next version.
Cheers!
Peter -
AuthorPosts
- The topic ‘Icon Boxes in Content Slider’ is closed to new replies.