Trying to use short code in text widget

This topic contains 3 replies, has 2 voices, and was last updated by  omnicity 7 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #368756

    omnicity
    Expired Member
    Post count: 130

    hi,

    so i’ve been trying to use a shortode in text widget to display a slide show or gallery.

    i tried some code:
    add_filter(‘widget_text’,’do_shortcode’);

    it didnt work.

    i downloaded a plugin called “Enhanced Text Widget” still not working

    Actually let me expand. with both methods when i insert the shortcode while in Appearance> Customize, the preview shows it fine. but when i go to my site without being logged in as admin, i see nothing.

    also i noticed that i have a console error that says;
    Uncaught TypeError: Cannot read property ‘ready’ of undefined

    not sure what the fix is or if it even affects anythng

    thanks

    #368758

    omnicity
    Expired Member
    Post count: 130

    and also on alll the speed tests ive done the google maps queries and css etc etc are the main source of the poor speed reports. what can i do to resolve this. i’m using autopimise, advanced speed increaser, and wp erformance score booster, and wp super cache. they work great i’m sure but they dont seem to be able to:
    12 Combine external JavaScript
    c
    77 Remove query strings from static resources
    c
    78 Specify a cache validator

    when it comes to the google map widget.

    any suggestion is appreciated

    #368786

    Kor
    Moderator
    Post count: 16516

    Hi omnicity,

    Please open a new thread for your question that is unrelated to the topic. As for using a shortcode in the Widgets, could tell me the shortcode you’re trying to use on the widget? I’ve inserted the code below using the Code Snippets plugin and I’d like to know what’s wrong with it.

    
    
    /* Allow shortcodes in widget areas */
    add_filter('widget_text', 'do_shortcode');

    Thanks!

    #368942

    omnicity
    Expired Member
    Post count: 130

    The shortcode was from a plugin called smart slider and another one called gallery by suspytic.

    looks like this shortcode looks like this:

    [smartslider3 slider=3]

    i can see it in my admin preview, but not on my live site

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket