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

    Please tell us how to fix that.

    #192778

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

    #193005

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

    #193104

    Hi!

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Icon Boxes in Content Slider’ is closed to new replies.