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

                              • MakeMeGrrrrowl
                                Grrrrrrrrr
                                • Oct 2002
                                • 4986

                                #16
                                Originally posted by vvvvv
                                Time to pay somebody
                                I suggest this guy right here!!!!!!!!!!! =)

                                Comment

                                • clickity click
                                  So Fecking Bummed
                                  • Aug 2014
                                  • 3682

                                  #17
                                  Offering $2 by PayPal

                                  Comment

                                  • VladS
                                    Available for Coding Work
                                    • Jun 2008
                                    • 1459

                                    #18
                                    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] dangerouscoding.com
                                    Telegram: @dangerouscoding

                                    Comment

                                    • clickity click
                                      So Fecking Bummed
                                      • Aug 2014
                                      • 3682

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

                                      Comment

                                      Working...