CSS Wordpress Help Needed Please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clickity click
    So Fecking Bummed
    • Aug 2014
    • 3682

    #1

    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.
  • Rob
    I'm a great bowler.
    • Nov 2003
    • 13310

    #2
    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?

    Comment

    • clickity click
      So Fecking Bummed
      • Aug 2014
      • 3682

      #3
      Originally posted by Rob
      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..

      Comment

      • clickity click
        So Fecking Bummed
        • Aug 2014
        • 3682

        #4
        Bumping this shit up. I know 92% of you guys know how to do this.
        I need a quick solution. Like tonight.

        Comment

        • myleene
          Confirmed User
          • Oct 2013
          • 906

          #5
          Hit me up and I'll do it for you. Could be delivered today with a payment by PayPal.

          Comment

          • pinkz
            Mr 1%
            • May 2005
            • 1397

            #6
            .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 $$$$

            Comment

            • clickity click
              So Fecking Bummed
              • Aug 2014
              • 3682

              #7
              Originally posted by pinkz
              .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.

              Comment

              • Freedom6995
                Friends of Venus founder
                • Jul 2010
                • 1975

                #8
                Originally posted by clickity click
                Hi,
                I know nothing about CSS.
                Time to expand your skill set. ;)

                Comment

                • PornDiscounts-V
                  Confirmed User
                  • Oct 2003
                  • 5744

                  #9
                  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

                  Comment

                  • clickity click
                    So Fecking Bummed
                    • Aug 2014
                    • 3682

                    #10
                    Originally posted by vvvvv
                    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?

                    Comment

                    • clickity click
                      So Fecking Bummed
                      • Aug 2014
                      • 3682

                      #11
                      Originally posted by clickity click
                      Thanks, I didn't try it yet, will later.
                      Tried it, fucked my site up. Nm

                      Comment

                      • Freedom6995
                        Friends of Venus founder
                        • Jul 2010
                        • 1975

                        #12
                        Originally posted by clickity click
                        Tried it, fucked my site up. Nm
                        Code was correct. You fucked it up.

                        Comment

                        • CPA-Rush
                          small trip to underworld
                          • Mar 2012
                          • 4927

                          #13
                          Originally posted by myleene
                          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

                          Comment

                          • clickity click
                            So Fecking Bummed
                            • Aug 2014
                            • 3682

                            #14
                            Time to pay a coder lol.

                            Comment

                            • kuskka
                              Confirmed User
                              • Jun 2013
                              • 134

                              #15
                              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!


                              Comment

                              Working...