| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
|
CSS Dropdown Issue... in Wordpress
I followed the install directions on this CSS Drop down menu : WordPress › Wordpress CSS Drop-down Menu « WordPress Plugins But I'm having duplicate menu's pop up on my site. I'd like to have the "dropdown" part under the header. And now the old header is gone, and just the text stacked on top of each other is in that location. Looks like the CSS isn't being applied to that. How can I get rid of the menu under the header, and replace it with the drop down that is positioned @ the top. Did I do something backwards? Site I'm putting it on : Artisan Food and Wine | Artisan-Craftmanship Meets Passion Many Thanks! Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
|
|
#3 (permalink) |
|
Senior Member
|
I adjusted the header.php, and that blew the page up. I am going to reset it, but if you get a chance check it out again. I think I did what you said. I'm trying it again just in case. Thanks! Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: May 2008
Location: Seattle
Posts: 64
|
Seems like the reason you're getting the text-only menu is because all your CSS is looking for .menu, but your HTML says #menu. If replace id="menu" with class="menu" you should get the right css. As for why you're getting a duplicate, it's hard to say without seeing your template files, but all I can think of is that you've just got the code repeated in your header.php and index.php (or whatever your template calls them). I like your header image, by the way |
|
|
|
#8 (permalink) |
|
Senior Member
|
Yeah, just because I was trying to get it figured out, and it made it worse. I didn't get a chance to work on it yesterday, so I reset it to look "normal" even though the main menu is screwed now When I updated what you said, it divided all my divs all over the place?!? Thanks. Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
#9 (permalink) |
|
Registered User
Join Date: May 2008
Location: Seattle
Posts: 64
|
Hmm, sorry if it messed up your page. For me, when I changed "id='menu'" to "class='menu'", everything worked correctly, except the menu was too long to fit in the container, so it wrapped at the end of the line (which should be easy to fix, you'd just change the width of the list items that make up the menu). Is that what you mean by dividing your divs? |
|
|
|
#10 (permalink) |
|
Senior Member
|
Changing the id to class, will that effect the way this drop down works? The drop down selections are now not showing. I'm going to start from scratch, and eliminate a few things that might be doing this. I have it up now. Thx. Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
#11 (permalink) |
|
Registered User
Join Date: May 2008
Location: Seattle
Posts: 64
|
Changing the id to a class shouldn't break anything, assuming the menu is completely CSS and not javascript (which it seems to be). But the reason I mentioned changing it from an ID to a class was because in the first iteration of the site you showed, you had two copies of the menu on the same page, and they both had the same ID. You should only ever have one thing with a given ID on the same page, and I figured that might be the reason your second menu wasn't displaying properly. Now, though, you've only got one menu, so there's no special reason to use class instead of ID, and if changing it has screwed up your code, there's no reason to keep it. |
|
|
|
#12 (permalink) |
|
Senior Member
|
Ok, switched it back to ID, but then forgot that I didn't add my code in there... "<?php wp_css_dropdownmenu(); ?>" So I have that in there, I'm going to switch it back to Class, and try and adjust the width. I have it set @ 650, but not sure why it's popping off the side. Any certain place to look to take off the black strokes? Hopefully I can get this figured out, so I know what these issues are in the future. Thanks for your help! Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
#13 (permalink) |
|
Senior Member
|
Adding the CLASS vs. the ID now adds in another drop down script without the functionality. So I'm going to nix that, and try and get rid of the other stacked text menu. Thinking something HTML based. Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
#14 (permalink) |
|
Senior Member
|
Removed :: <div id="navigation"> <li <?php if(is_home()){echo 'id="amenu"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li> <?php wp_list_pages('title_li=&depth=1');?></div> In the header.php file. I think I have it fixed. Also moved my RSS link to the top to make up for space issues. No I just have to tweak this to look decent. Thanks for everything!!! Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
![]() |