Okay
  Public Ticket #3095204
Scrolling text widget with custom shortcodes
Closed

Comments

  • haveabytenow started the conversation

    I would like to propose a change to allow the use of custom shortcodes in the scrolling-text widget. Would be nice to see this in a next release!

    Add a filter to Salient-core, to allow shortcodes in the scrolling-text shortcode.
    File: plugins/salient-core/includes/vc-templates/nextar_scrolling_text.php line#101

    $inner_content = apply_filters('nectar-scrolling-text-content', $inner_content);

    The customer can put this code in his functions.php to filter the content of the scroller (and thus also allow shortcodes)


    function scolling_text_allow_shortcodes( $s ) {
        return do_shortcode($s);
    }
    add_filter( 'nectar-scrolling-text-content', 'scolling_text_allow_shortcodes', 10, 3 );


  •  1,877
    Judith replied

    Hello There,

    Thanks for choosing Salient.

    We'll surely share this to our developer as a proposal. Thanks for sharing this with us.

    Thanks.

  •  1,070
    ThemeNectar replied

    Hey haveabytenow!

    I've noted to allow the parsing of shortcodes within that element by default in the upcoming releasesmile.png

    Cheers