Title: Help Adding Pull down menu.
Last modified: August 18, 2016

---

# Help Adding Pull down menu.

 *  [lmannyr](https://wordpress.org/support/users/lmannyr/)
 * (@lmannyr)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/)
 * How can I put My “Weather Icon” Info and “Witty” quotes in separete new pull 
   down menus like I already have?
 * I tried but without success. I noticed my theme uses “javascript:switchit” artribute
   to do this with the other menus.
 * [http://www.luisandcarla.com](http://www.luisandcarla.com)
 * Thanks..

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

 *  Thread Starter [lmannyr](https://wordpress.org/support/users/lmannyr/)
 * (@lmannyr)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242084)
 * Anyone
 *  [e_ticket](https://wordpress.org/support/users/e_ticket/)
 * (@e_ticket)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242589)
 * Luis & Carla: I noticed by visiting your URL, that you have this sorted out. 
   I’m trying to do the same for my blog. Did you find a plugin? Or was it the javascript:
   switchit code? Can you tell me where you found the information to set this up?
   Tks! w-
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242590)
 * You’ll have to use what the theme uses, which appears to be the javascript. I
   couldn’t find the theme to download it and check it out, but you will have to
   set it up with the same classes as the other dropdown lists.
 *  [e_ticket](https://wordpress.org/support/users/e_ticket/)
 * (@e_ticket)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242591)
 * Thanks Beel. I think I found the template here:
 * [http://bluegator.org:66/devel/neuron](http://bluegator.org:66/devel/neuron)
 * There’s even a link to another blog which seems to use a modified “Connections”
   theme (the same theme on which mine is based). Looks like I have some things 
   to figure out. 🙂
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242592)
 * I downloaded the theme and it is easy to add extra “stuff” – just grab one item
   that is there, copy paste it where you want your new sidebar item and substitute
   the name heading and “new stuff”. I wanted my weather stuff not to be in a dropdown
   but have similar heading:
    <div class=”menuheader”><div>Boulder, Colorado</div
   ></div> `<ul><li>` <? require_once(“../weather13/xoapWeather.php”); $weather 
   = new xoapWeather(); $weather->loadXoap(80301,’cc’,1,’en’); ?>`</li> </ul>
 * Fortunately there is a “customize.txt” file which should explain how to do more.
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242593)
 * Yep, you just need to have it in a `div` with the class `menuheader`.
 * You can actually just replace `<li class="weather">` with `<div class="menuheader"
   >` and the `</li>` below with `</div>`.
 * BTW – new version of WeatherIcon will be out soon. 😉
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242594)
 * I went ahead and made my weather section a drop down but set it to “true” so 
   it would automatically show the weather on first visit (same with my random quote
   section). It’s easier than it looks.
 *  [e_ticket](https://wordpress.org/support/users/e_ticket/)
 * (@e_ticket)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242597)
 * I was so close to saying Mission Accomplished.
 * I downloaded the Neuron Theme and studied these sites:
    [http://www.luisandcarla.com/](http://www.luisandcarla.com/)
   [http://bluegator.org:66/devel/neuron](http://bluegator.org:66/devel/neuron) 
   [http://bluegator.org:66/deuce/](http://bluegator.org:66/deuce/) [http://www.kahpeng.com/weblog/](http://www.kahpeng.com/weblog/)
 * That last one is also based on the Connections theme. All four sites seem to 
   do what I set out to accomplish. I bounced around between them and the Neuron
   theme sidebar.php file for reference. I thought I was there. I swore I was there.
   Except for one thing..
 * The drop down sidebar menus only seems to work on the first (main) page. When
   visiting the other pages, the menus are frozen in the un-collapsed position and
   the “button” is inoperative.
 * I was so close too. I’ve been at this all day. Time to call it a night. Tomorrow
   is another day.
 * Thanks for the help, fellas. 🙂
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242598)
 * Sounds like you are caught in the relative vs. absolute trap. When including 
   a javascript file to do this, you have to use the absolute path to the js file.
   If not, once you move off the front page, the page looks for the js file relative
   to where it is now (which happened to work on the main page).
 *  [e_ticket](https://wordpress.org/support/users/e_ticket/)
 * (@e_ticket)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242599)
 * Hi Beel, That was a good place to start, and one I hadn’t already thought of 
   yet. Thing is, all the examples I looked at, used absolute paths and because 
   of this, so did I. Turns out that there are a couple of pieces of code that I
   put on the main template (index.php):
 * <script type=”text/javascript” src=”[http://www.eticketride.org/wpblog/wp-content/themes/connections/nicetitle.js”&gt](http://www.eticketride.org/wpblog/wp-content/themes/connections/nicetitle.js”&gt);
   
   <script type=”text/javascript” src=”[http://www.eticketride.org/wpblog/wp-content/themes/connections/sidebar.js”&gt](http://www.eticketride.org/wpblog/wp-content/themes/connections/sidebar.js”&gt);
 * I did not have these on my page template (page.php) which I believe is used to
   create my “other pages” like my about page, mods page, contact page etc. I also
   had to add it to pages that I threw together without using the page template,
   like the who’s online page.
 * There is one interesting little discovery though. When I revisited those two 
   pieces of code, I noticed that the second one (for sidebar.js) still pointed 
   to Luis and Carla’s site. Darn copy and paste. I guess that means that every 
   time I clicked on my side bar to actuate a drop down menu, all those times I 
   thought “Hey! It works!” My site was actually hitting theirs. ahem… sorry guys.
 * The link was corrected, and both pieces of code were added to all the other pages
   and now I think I have it covered everywhere. Holy crap. Aren’t you guys glad
   I’m not a mechanic or a surgeon? 😉 “Duh, I didn’t know that goes in there!”
 *  [sfong15](https://wordpress.org/support/users/sfong15/)
 * (@sfong15)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242652)
 * I was also trying to port the switchit script from Neuron theme to “connections
   reloaded” but found similar problem. See [http://www.sfong.net/fun](http://www.sfong.net/fun)
   the “pages” section under sidebar. I have the section expanded no matter “true”
   or “false” is used in the script. When I mouse over the “-” sign it shows the
   correct path to the js file. What has gone wrong? Anyone any clues?

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

The topic ‘Help Adding Pull down menu.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 5 participants
 * Last reply from: [sfong15](https://wordpress.org/support/users/sfong15/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/help-adding-pull-down-menu/#post-242652)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
