• 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

Combo Box Drop Down

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 › Design Tips and Tricks › Combo Box Drop Down

This topic is: not resolved

Tagged: categories, drop down

  • This topic has 9 replies, 2 voices, and was last updated 12 years ago by dev.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • May 18, 2013 at 1:54 pm #41527
    erinakong
    Member

    I am trying to insert a combo box drop down/item list into my page.

    I couldn't find a plugin to do this....does anyone know of one?

    I tried to build it myself, but I could not work out how to direct to another page once that 'value has been selected.

    Take a look here.

    http://carriedebuys.com/test-for-drop-box/

    Can anyone help?

    Thanks in advance

    http://carriedebuys.com/test-for-drop-box/
    May 19, 2013 at 2:30 pm #41655
    dev
    Participant

    I don't know where you got the HTML code for what you did, but I'd do it this way:

     

    <select id="mySelect" onchange="if(this.options[this.selectedIndex].value != ''){window.top.location.href=this.options[this.selectedIndex].value}">
    <option value="">Select Below</option>
    <option value="http://www.google.com">Google</option>
    <option value="http://www.yahoo.com">Yahoo</option>
    <option value="http://www.hotmail.com">Hot Mail</option>
    </select>

    May 19, 2013 at 2:48 pm #41664
    erinakong
    Member

    Thanks so much for your help.  I am going to try it now.

     

     

    May 19, 2013 at 2:54 pm #41667
    erinakong
    Member

    I just coped your code.  It doesn't seem to work....?

    May 19, 2013 at 3:04 pm #41670
    dev
    Participant

    Hmmm. It works for me on a test page:

    http://newmediawebsitedesign.com/wp2/test-2/

    Are you putting the HTML in one of the Agent Press's widgets? Try it on a plain old page and see if it works.

    I see your code in the page...

    <div class="entry-content">
    			<select id=”mySelect” onchange=”if(this.options[this.selectedIndex].value != ”){window.top.location.href=this.options[this.selectedIndex].value}”>
    <option value=”">Select Below</option>
    <option value=”http://www.google.com”>Google</option>
    <option value=”http://www.yahoo.com”>Yahoo</option>
    <option value=”http://www.hotmail.com”>Hot Mail</option>
    </select>
    		</div><!-- end .entry-content -->
    

    Maybe the class "entry-content" is screwing things up? What does it style?

    May 19, 2013 at 3:19 pm #41679
    erinakong
    Member

    It's not in a widget.  i just cut and pasted it in to the html box.  I inherited this site so I am not sure about....much....sorry.  How can I find out?

    May 19, 2013 at 3:41 pm #41688
    dev
    Participant

    What is an 'html box?"

    Take a look at the class " dsidx-widget-search" and use that to style your drop down. That might work. It is in client.css

    Without being able to login and seeing what you are doing, there isn't much more I can suggest.

     

    http://www.newmediawebsitedesign.com

    May 19, 2013 at 3:48 pm #41690
    erinakong
    Member

    I am more than willing to give you the log-in for you to check it out.  I REALLY appreciate your time in helping me.

     

    May 19, 2013 at 3:50 pm #41691
    dev
    Participant

    One last guess... You copied my code? Perhaps your editor created "smart quotes":

     
    <div id="content-sidebar-wrap">

    <div id="content" class="hfeed">
    <div class="post-308 page type-page status-publish hentry">

    <h1 class="entry-title">Test for Drop box</h1>

    <div class="entry-content">
    <select id=”mySelect” onchange=”if(this.options[this.selectedIndex].value != ”){window.top.location.href=this.options[this.selectedIndex].value}”>

    Uncaught SyntaxError: Unexpected token ILLEGAL

    <
    Check the quote marks in YOUR code to make sure they are OK.... "mySelect  and !=" etc.

    When I ran your code under Chrome Resources I get "Unexpected token ILLEGL" It's a syntax error... so there is some junk in the code... my bet is is the quotes.

    May 19, 2013 at 3:52 pm #41693
    dev
    Participant
    This reply has been marked as private.
  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ 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