Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #187146

    Thirst things first.. Enfold makes life alot easier.. this is BY FAR the best theme out there.

    I do have a question though..

    Is there a possibility to use the Enfold shortcodes (example button) in the excerpt of a post/portfolio item? When I copy the shortcode from the normal wysiwyg editor and paste it in the excerpt I only get to see some html markup and it doesn`t read my shortcode.

    Please help if possible

    Thank you!

    Thomas

    #187155

    anyone?

    #187776

    Hey!

    No, wordpress excerpts do not support shortcodes or html code by default.

    Cheers!
    Peter

    #195251

    Hey I bougth this theme because I asked this exact question in the themeforest forum and the one with the nick “kriesi” replyed that I can just put a shortcode in the excerpt field. So now what?
    Thanks

    #195451

    Hey!

    Do you have a link to where Kriesi said that? WordPress by default does not allow for html within excerpts so I’d like to see exactly what Kriesi said as maybe there is a bit of terminology getting lost in the explanation.

    Kriesi, the theme author, is the only one who posts on the ThemeForest page so if he said something was possible then it should be doable.

    Best regards,
    Devin

    #195462

    Hey,

    Thanks for the response. I think I understood it right but have a look.
    here is the link
    It is the first discussion in this search “edfaber” is my mic
    (by the way your system clock is an hour to fast if you are sitting in vienna ;-)

    #196611

    Hi!

    Excerpts do not support shortcodes by default but you can use the do_shortcode() function to execute them even if wordpress does not support them in excerpts. In your case you need to modify /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php – open up the file and replace

    
    $output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false)).">".$excerpt."</div>" : '';
    

    with

    
    $output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false)).">".do_shortcode($excerpt)."</div>" : '';
    

    Cheers!
    Peter

    #196640

    Thank you so much! Works like a charm! really appreciate it!

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

The topic ‘Using Enfold shortcodes in the excerpt?’ is closed to new replies.