WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Section Widget] Remove Tabbed Interface and JQuery from Output

[Resolved] [Plugin: Section Widget] Remove Tabbed Interface and JQuery from Output

  • Is it possible to have the Section Widget plugin output plain HTML instead of the tabbed interface?

    I don’t need any of the JQuery/Javascript stuff at all.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi mark,

    Have you tried using the “standard” Section Widget? The JS stuff will only be outputted when at least one TABBED section widget is used. Hope it helps!

    Godfrey

    Hi Godfrey! I actually already had it set on the “Provide Your Own CSS” option but it still seemed to be linking to the Section Widget JS file on my site (which is what I wanted to remove). I actually commented out the following line (line #251) from the section-widget-tab.php file and it seems to be a workable (although probably not so great) solution:

    wp_enqueue_script('section-widget', plugins_url('section-widget/section-widget.js'), array('jquery','jquery-ui-tabs'));

    You can see my progress here. It’s on the left hand side underneath the Google Search Box.

    And here is a link to how my widget is currently setup. I can’t give titles to the tabs because it will place the titles (as links) at the top of the output, but I’m considering simply placing all of the code I need (lists, h2s, ect) within 1 tab of the admin interface and just simply use it that way. Let me know if you see any other fairly easy solutions. Thanks for your response and thanks for one of the best plugins I’ve seen in a very long time.

    Hi Mark,

    Actually, I have a good news for you – no code change necssary 😉 When you add the “Section Widget (Tabbed)” widget that you are currently using, it will try include the JavaScript files to do its tabbing magic. However, if you look closely, there is also another widget called “Section Widget”, which does exactly what you need – a text widget with scope selection. As long as you don’t add any “Tabbed” section widget to your sidebar, no JS will be loaded at all! Hope it helps!

    Godfrey

    Man, my own stupidity amazes me sometimes. This is EXACTLY what I was needing.

    I’ll mark this as resolved. Keep being AWESOME! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Section Widget] Remove Tabbed Interface and JQuery from Output’ is closed to new replies.