Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-18-2015, 01:17 PM   #1
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
CSS Wordpress Help Needed Please

Hi,

I am trying to get a second navigation menu working on my wordpress blog but I am having trouble styling it. I know nothing about CSS.

Basically I have this in my header.php

Code:
<?php wp_nav_menu( array( 'theme_location' => 'new-menu' ) ); ?>
The menu items are displaying but they are in a long list..

I want them to look similar to this:


This is the current css for the top Nav I presume.

Code:
5.2 Menus
--------------------------------------------------------------*/
.main-navigation {
	display: block;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation li {
	float: left;
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul ul li {

}

.main-navigation li:hover > a {
}

.main-navigation ul ul :hover > a {
}

.main-navigation ul ul a:hover {
}

.main-navigation ul li:hover > ul {
	left: auto;
}

.main-navigation ul ul li:hover > ul {
	left: 100%;
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a {
}
I tried changing them from main-navigation to new-menu but it didn't do a fucking thing.

Thanks.
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2015, 01:22 PM   #2
Rob
I'm a great bowler.
 
Rob's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: Right Outside of Normal.
Posts: 13,310
Why don't you just go into Appearances > Menus and edit the menus there? You can drag/drop them into sub menus, and even sub-sub-sub menus.

That seems to be the most simple way to skin this cat. No need to edit CSS or PHP.

Edit: Maybe I'm reading this wrong, can you upload a screen cap of the way it is now?
Rob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2015, 01:24 PM   #3
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Quote:
Originally Posted by Rob View Post
Why don't you just go into Appearances > Menus and edit the menus there? You can drag/drop them into sub menus, and even sub-sub-sub menus.

That seems to be the most simple way to skin this cat. No need to edit CSS or PHP.
I need to second navigation menu. My theme only supports one so I have had to add a second using the above code plus editing functions.php but the css isn't formatted right..
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2015, 02:54 PM   #4
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Bumping this shit up. I know 92% of you guys know how to do this.
I need a quick solution. Like tonight.
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2015, 06:50 PM   #5
myleene
Confirmed User
 
Industry Role:
Join Date: Oct 2013
Location: Canada
Posts: 866
Hit me up and I'll do it for you. Could be delivered today with a payment by PayPal.
myleene is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2015, 05:55 AM   #6
pinkz
Mr 1%
 
pinkz's Avatar
 
Industry Role:
Join Date: May 2005
Location: Nomad
Posts: 1,397
.main-navigation a {
display: block;
text-decoration: none;

change the above to the below

.main-navigation a {
display: inline;
text-decoration: none;

should work, no paypal required!
__________________
$$$$ Video Secrets $$$$
pinkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2015, 06:38 AM   #7
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Quote:
Originally Posted by pinkz View Post
.main-navigation a {
display: block;
text-decoration: none;

change the above to the below

.main-navigation a {
display: inline;
text-decoration: none;

should work, no paypal required!
Thanks, I didn't try it yet, will later.
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2015, 09:55 AM   #8
Freedom6995
Friends of Venus founder
 
Freedom6995's Avatar
 
Industry Role:
Join Date: Jul 2010
Posts: 1,965
Quote:
Originally Posted by clickity click View Post
Hi,
I know nothing about CSS.
Time to expand your skill set. ;)
__________________
Email: freedom6995 . protonmail.com
Freedom6995 is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2015, 10:01 AM   #9
PornDiscounts-V
Confirmed User
 
PornDiscounts-V's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: L.A.
Posts: 5,740
Time to pay somebody
__________________
Blog Posts - Contextual Links - Hardlinks on 600+ Blog Network
* Handwritten * 180 C Class IPs * Permanent! * Many Niches! * Bulk Discounts! GFYPosts /at/ J2Media.net
PornDiscounts-V is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2015, 12:22 PM   #10
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Quote:
Originally Posted by vvvvv View Post
Time to pay somebody
Well not really, if the solution is as simple as changing block to inline as posted above.
Why pay for 6 characters?
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2015, 02:26 PM   #11
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Quote:
Originally Posted by clickity click View Post
Thanks, I didn't try it yet, will later.
Tried it, fucked my site up. Nm
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2015, 09:35 PM   #12
Freedom6995
Friends of Venus founder
 
Freedom6995's Avatar
 
Industry Role:
Join Date: Jul 2010
Posts: 1,965
Quote:
Originally Posted by clickity click View Post
Tried it, fucked my site up. Nm
Code was correct. You fucked it up.
__________________
Email: freedom6995 . protonmail.com
Freedom6995 is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2015, 11:09 PM   #13
CPA-Rush
small trip to underworld
 
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
Quote:
Originally Posted by myleene View Post
Hit me up and I'll do it for you. Could be delivered today with a payment by PayPal.
__________________

automatic exchange - paxum , bitcoin,pm, payza

. daizzzy signbucks caution will black-hat black-hat your traffic

ignored forever :zuzana designs
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2015, 05:35 AM   #14
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Time to pay a coder lol.
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2015, 09:07 AM   #15
kuskka
Confirmed User
 
kuskka's Avatar
 
Industry Role:
Join Date: Jun 2013
Posts: 134
I can help you if you create a CodePen showing the issue: CodePen - Front End Developer Playground & Code Editor in the Browser

It's hard to know what's happening without seeing the code. Or you can contact me and I'll check your theme and see what's happening!
__________________


kuskka is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2015, 10:01 AM   #16
MakeMeGrrrrowl
Grrrrrrrrr
 
MakeMeGrrrrowl's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Dreamland
Posts: 4,974
Quote:
Originally Posted by vvvvv View Post
Time to pay somebody
I suggest this guy right here!!!!!!!!!!! =)
MakeMeGrrrrowl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2015, 04:04 PM   #17
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Offering $2 by PayPal
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2015, 05:02 PM   #18
VladS
Available for Coding Work
 
VladS's Avatar
 
Industry Role:
Join Date: Jun 2008
Posts: 1,432
What do you mean by "they are in a long list"? Can you email me full info on this? Sounds like a quick fix, i'll help you out. Free of charge, you can buy yourself a beer on my behalf for those 2 bucks

vlad /at/ faxite /dot/ com

L.E.: You mean the menu items should be one below the other versus one next to the other? If so, add float: left; to main-navigation a.

L.E. 2: Rereading, you do want it horizontal, you can try adding display: inline-block; float: left; width: auto; Best to email me your site URL if you don't want it public and i'll email you back the exact solution.
__________________
<developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery
Email: vlad [at] faxite.com
Telegram: @dangerouscoding
VladS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2015, 05:09 PM   #19
clickity click
So Fecking Bummed
 
Industry Role:
Join Date: Aug 2014
Posts: 3,682
Quote:
Originally Posted by VladS View Post
What do you mean by "they are in a long list"? Can you email me full info on this? Sounds like a quick fix, i'll help you out. Free of charge, you can buy yourself a beer on my behalf for those 2 bucks

vlad /at/ faxite /dot/ com

L.E.: You mean the menu items should be one below the other versus one next to the other? If so, add float: left; to main-navigation a.

L.E. 2: Rereading, you do want it horizontal, you can try adding display: inline-block; float: left; width: auto; Best to email me your site URL if you don't want it public and i'll email you back the exact solution.
Thanks for the offer. I will that when I get chance.
If I can't sort it I will be in touch.
Thanks, I can't buy myself a beer with the 2 bucks but I might be able to get a 1/2.
clickity click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
.main-navigation, left, lihover, css, top, position, float, 3px, 999em;, left;, menu, none;, wordpress, display, block;, fucking, padding-left, rgba0, text-decoration, relative;, box-shadow, z-index, .current_page_item, 100%;, auto;



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.