Title: pbpersson's Replies | WordPress.org

---

# pbpersson

  [  ](https://wordpress.org/support/users/pbpersson/)

 *   [Profile](https://wordpress.org/support/users/pbpersson/)
 *   [Topics Started](https://wordpress.org/support/users/pbpersson/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pbpersson/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pbpersson/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pbpersson/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pbpersson/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pbpersson/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [viewing website on smartphone](https://wordpress.org/support/topic/viewing-website-on-smartphone/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/viewing-website-on-smartphone/#post-6954720)
 * In order to make the theme responsive to different platforms there are [@media](https://wordpress.org/support/users/media/)
   queries in the CSS file. These queries check the display capabilities of the 
   target platform and there are statements in the CSS file to shrink appropriate
   web page components so the page will render properly on that device.
 * If you look in the CSS file for the Twenty Eleven theme you can see these [@media](https://wordpress.org/support/users/media/)
   entries. Your child theme must contain similar entries for new web page components
   you might add.
 * For general articles concerning this topic you can Google “Responsive CSS”
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [viewing website on smartphone](https://wordpress.org/support/topic/viewing-website-on-smartphone/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/viewing-website-on-smartphone/#post-6954713)
 * I am still looking for answers regarding this question, if anyone has any wisdom.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [viewing website on smartphone](https://wordpress.org/support/topic/viewing-website-on-smartphone/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/viewing-website-on-smartphone/#post-6954615)
 * Does anyone have any information on this?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding simple drop-down](https://wordpress.org/support/topic/adding-simple-drop-down/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-simple-drop-down/#post-6954564)
 * NeoTechnomad – I was not able to get your solution to work, and it needs to be
   a drop-down. Eventually it will contain a list of 200 cities and based on the
   state it will be routed to different pages in this web site.
 * I was able to get the Javascript example to work in header.php.
 * Thank you! 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding simple drop-down](https://wordpress.org/support/topic/adding-simple-drop-down/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-simple-drop-down/#post-6954554)
 * So I put the first part in header.php and the second part in footer.php? That
   sounds very confusing. I wish I could put a comment in header.php to tell people
   to find the code in footer.php but whenever I try to add a comment to these php
   files it appears on the web page.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding simple drop-down](https://wordpress.org/support/topic/adding-simple-drop-down/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-simple-drop-down/#post-6954477)
 * I found an article that claimed this might work. I just want to verify that whatever
   I use will work in header.php
 *     ```
       <select name="menu1" id="menu1">
       <option value="http://www.espn.com">ESPN</option>
       <option value="http://www.cnn.com">CNN</option>
       <option value="http://www.abcnews.com">ABC</option>
       <option value="http://www.cbsnews.com">CBS</option>
       <option value="http://www.foxnews.com">FOX</option>
       </select>
       <script type="text/javascript">
        var urlmenu = document.getElementById( 'menu1' );
        urlmenu.onchange = function() {
             window.open( this.options[ this.selectedIndex ].value );
        };
       </script>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding simple drop-down](https://wordpress.org/support/topic/adding-simple-drop-down/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-simple-drop-down/#post-6954476)
 * I will put that code inside header.pbp and see if it works. Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding simple drop-down](https://wordpress.org/support/topic/adding-simple-drop-down/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-simple-drop-down/#post-6954440)
 * I am not trying to write to a database nor am I trying to read from a database.
   This is what I am trying to do:
 * [http://webdesign.about.com/od/javascript/f/blfaqddredirect.htm](http://webdesign.about.com/od/javascript/f/blfaqddredirect.htm)
 * A drop down control has a list of values. When someone clicks on an item in the
   drop down, they are sent to a web site based on the URL associated with that 
   item.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding simple drop-down](https://wordpress.org/support/topic/adding-simple-drop-down/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-simple-drop-down/#post-6954358)
 * Keep in mind I have absolutely no idea what I am doing. I am trying to follow
   guides on the web, none of which are clear. The <select id=”company” name=”company”
   > item is a drop-down control that contains a list of companies. When someone
   clicks on a company name I need some PHP code to take the user to that web site.
   For instance, if they click on “Apple” then the browser takes them to [http://www.apple.com](http://www.apple.com).
 * I have no idea how the select or the form links up with the PHP or how the fopen
   works. I am totally lost.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [adding simple drop-down](https://wordpress.org/support/topic/adding-simple-drop-down/)
 *  Thread Starter [pbpersson](https://wordpress.org/support/users/pbpersson/)
 * (@pbpersson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-simple-drop-down/#post-6954350)
 * Thank you, that is closer. Now I can see the “submit the form” button but when
   I click on it, nothing happens.

Viewing 10 replies - 1 through 10 (of 10 total)