Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1165142

    Hi guys,

    For a footer I’m building I need 2 rows of 4 columns. Rather than trying to add new widget areas, I changed the Enfold Settings Footer / Footer Columns to show just 1 column in the footer. I’ve then added a text widget into the single area, with the shortcode [av_postcontent link='page,283' ]:
    Screen-Shot-2019-12-12-at-7-14-42-pm

    This works perfectly for embedding any source page built using the default blocks editor (even using columns etc):

    Screen-Shot-2019-12-12-at-7-16-21-pm

    However, when I try to embed a source page built using the Avia Page Builder, OR when I embed a Shortcode into the standard page, it just renders as text:

    Screen-Shot-2019-12-12-at-7-17-24-pm

    Is it possible to get the shortcodes within another shortcode to render? If so, it would make designing footers for Enfold SOOOOO much easier, you could simply design a page using the avia page builder, and then load it into the footer area.

    Thanks
    Luke

    #1165280

    Hey LukeHopkins,

    Can you give us temporary admin access? so we can try to look further into it.
    Just post the credentials in private content.

    Best regards,
    Nikko

    #1165413
    This reply has been marked as private.
    #1165424

    maybe a search on google could help you : look for wordpress and nested shortcodes f.e.: https://slewis.org/nested-wordpress-shortcodes/
    it all is about setting filterpriority – and be carefull on dooing that too early – maybe a mod could give you a hint on what priority ( 10 or 20 …) it is best to implement.
    this comes to child-theme functions.php:

    define('filter_priority', 10);
    add_filter('the_content', 'do_shortcode', filter_priority);
    add_filter('widget_text', 'do_shortcode', filter_priority);

    A nice idea ! indeed – and in combination with f.e. restrict widget plugin you can define for different pages in a quick manner different footers.
    ______________________
    Off-Topic: by the way i showed a way to have a second footer widget row in the footer – or to have a widget row in socket here:
    https://kriesi.at/support/topic/second-widget-line-in-footer/

    all you need is a custom child-theme footer.php and one entry in child-theme functions.php:
    here for footer: https://kriesi.at/support/topic/second-widget-line-in-footer/#post-1156806
    here for Socket: https://kriesi.at/support/topic/second-widget-line-in-footer/#post-1156800

    it will end in an extra setting in enfold options dialog f.e.:

    #1165543

    Hi LukeHopkins,


    @Guenni007
    is right in saying that it’s about filter priority.
    Adding this to your child theme’s functions.php should fix it on your site:

    add_filter('widget_text', 'do_shortcode', 20);


    @Guenni007
    thanks again for sharing :)

    Best regards,
    Nikko

    #1165967

    Hi @guenni007 and @nikko thanks so much for your help and suggestions guys. Love your work! That add_filter code you put up Nikko, worked a treat.

    #1166047

    Hi,

    Great, I’m glad that you got things working and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1167168

    Hi @Rikard, all good to close this one. Cheers.

    #1167189

    Hi LukeHopkins,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Shortcodes within Shortcodes…’ is closed to new replies.