• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Using jQuery UI in Minimum Pro Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Using jQuery UI in Minimum Pro Theme

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 11 years, 9 months ago by scoe.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 6, 2013 at 8:09 am #61067
    scoe
    Member

    I am trying to use the jQuery UI Accordion script (and others if I can).

    Not sufficient: http://www.studiopress.community/topic/is-jquery-includedloaded-with-the-genesis-framework/
    Perhaps I am missing the css calls? I put the call to the accordion script in the script entry field at the bottom of the post where I used it. No response. The text just rendered as plain text.

    I also use the backstretch widget, but otherwise a plain vanilla install.

    This (html below) works fine outside WordPress, in plain html so my struggle is to use widgets in WordPress/StudioPress/Minimum Pro. I put the enqueueing scripts in the head and the links to the css files....

    I really want to learn to work directly with jQuery widgets inside WordPress because outside it, it is so useful. Any help would be appreciated.

    Example From:

    Accordion Widget


    ----------------------------------------

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>accordion demo</title>
      <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
      <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
      <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    </head>
    <body>
     
    <div id="accordion">
      <h3>Section 1</h3>
      <div>
        Mauris mauris ante, blandit et, ultrices a, suscipit eget.
        Integer ut neque. Vivamus nisi metus, molestie vel, gravida in,
        condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros.
        Nam mi. Proin viverra leo ut odio.
    
      </div>
      <h3>Section 2</h3>
      <div>
        Sed non urna. Phasellus eu ligula. Vestibulum sit amet purus.
        Vivamus hendrerit, dolor aliquet laoreet, mauris turpis velit,
        faucibus interdum tellus libero ac justo.
    
      </div>
      <h3>Section 3</h3>
      <div>
        Nam enim risus, molestie et, porta ac, aliquam ac, risus.
        Quisque lobortis.Phasellus pellentesque purus in massa.
    
        <ul>
          <li>List item one</li>
          <li>List item two</li>
          <li>List item three</li>
        </ul>
      </div>
    </div>
     
    <script>
    $( "#accordion" ).accordion();
    </script>
     
    </body>
    </html>
    September 6, 2013 at 11:12 am #61105
    David Chu
    Participant

    Hi,
    That's not exactly a Genesis question, but I happen to use that stuff regularly. I saw one thing right away that looked odd, but apparently will still run - not identifying your script as Javascript. So that's something I learned today. ๐Ÿ™‚ You are loading jQuery, so that's cool.

    BUT... I think you'll get better results by doing this instead. Just a bit more code than you have:

    <script type="text/javascript">
    jQuery(document).ready(function($) { 
    	$( "#accordion" ).accordion();
    });
    </script>
    

    btw, I think this is a nice way to package up all that stuff. I use it regularly:

    jQuery UI Widgets


    Then you don't have to hack templates, and can use plain HTML to make the interface things happen with a few judiciously placed ID's/classes.

    Cheers, Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    September 6, 2013 at 11:30 am #61108
    scoe
    Member

    Hi David,

    Thank you for your quick response ๐Ÿ™‚ I don't have jQuery working for me.

    That example I posted is just a plain stand-alone html page. It works outside WordPress just fine. My goal is to get this to work when I put this in a page. (Now I am using my own accordion script. Not as pretty.)

    I tried that "jQuery UI Widgets" plugin but was not able to get it to work. Just as your code. So it's got to be me. I know that jquery involves including css files and I have done nothing there. I think that's where my missing piece is.

    I tried putting in the script field. Nothing. No error. The backstretch plugin works, so maybe I should see how.

    I'm probably in over my head, but those jQuery UI widgets are worth stretching for.

    - Sheryl

    September 6, 2013 at 12:19 pm #61121
    David Chu
    Participant

    There are a lot of moving parts to these things. The plugin I mentioned pulls in its own CSS for you, so the problem does likely lie somewhere else. And it's worth keeping in mind that many things that jQuery does involve interacting with your site's HTML and CSS, but some of its features may not require any of its own CSS to be imported.

    Good luck! Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    September 6, 2013 at 12:21 pm #61122
    scoe
    Member

    Thanks David, You have helped me not waste my time on that.

    I will try a plain vanilla install and see if that helps. I can't delete backstretch right now.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble