Add Button to WordPress Header Navigation Menu

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 145

  • @ryanminkoff4056
    @ryanminkoff4056 5 років тому +1

    Just want to make sure you're aware, stands for "list item", it isn't short for link. It doesnt have to be used as a link either, you can use anywhere you want to list something. It's just become standard that navigations are formatted using list items within a (unordered list). Its the anchor tag which turns something into a link

  • @markcerisano4268
    @markcerisano4268 4 роки тому +1

    I cannot believe how much CSS I learned in 5 minutes. And I'm not new to CSS. I've just never watched a video that was so clear. Awesome! Subscribing dude!

    • @narayguy
      @narayguy  4 роки тому

      Oh looks like you got it?! 👏 Amazing comment glad to have ya here Mark.

  • @sarahmeyernc
    @sarahmeyernc 4 роки тому

    I never comment on UA-cam videos, but you just saved my life with this code. A++ You're an incredible teacher!

  • @jimmy8968
    @jimmy8968 3 роки тому

    Thanks so much for this - first bit of CSS I've ever tried and it worked!

  • @animeshsinghpatel278
    @animeshsinghpatel278 4 роки тому

    Wow! Your tutorial on this button seems to be only one available on internet. I almost spent 4 hours to figure out the way doing it (surely I'm new to CSS) but your solution was bang on! Thanks a lot!!

  • @vic7046
    @vic7046 3 роки тому +1

    Amazing! Thank you so much for taking the time to do this! I love it when I actually know what it is I am writing into the CSS code!

    • @narayguy
      @narayguy  3 роки тому

      So happy to help and hope to see you back!

  • @giginixon
    @giginixon 4 роки тому +1

    Thanks so much!!! P.S. your voice sounds so calm and relaxing :-)

    • @narayguy
      @narayguy  4 роки тому

      Aw thank you Gigi! Best compliment. Yes we keep it chill glad you dig it 👏☺️

  • @rushabhatpodiapro
    @rushabhatpodiapro 4 роки тому

    Thank you Greg; I've been looking for how to do this for a while, you've explained it really well. It didn't work for me in the beginning (I'm a beginner). When I inspected my item, it did not have the ID or Class mentioned as clearly as in your case. I did some more reading and added a custom class under Appearance - Menu but it still didn't work. Then I added li. as a prefix to the class name in the code and it worked. Maybe because I use elementor, the class ID was not as clearly spelt, but I achieved my objective, all thanks to you!

  • @JoelCyrill
    @JoelCyrill 3 роки тому +1

    Hey, this was really helpful. but how do you change the color of the text? (when not hovering.)

    • @narayguy
      @narayguy  3 роки тому

      Try some css like this:
      #menu-item-487 a {
      color: blue;
      }

  • @OHENDERSON76
    @OHENDERSON76 3 роки тому +1

    Hi Greg! SO happy I found your vid. It worked great for my main header menu but I am having trouble adding the same button to my "mobile menu." How do I inspect my website on a mobile device to get the "menu id?" Or do I add more css for mobile using the same menu id?

    • @narayguy
      @narayguy  3 роки тому

      Happy to help K and sounds like this Wordpress tutorial worked for ya! Sooo you can write the new css on desktop, and target mobile screen sizes. This will help you target a hamburger menu for example, within which you can target the last menu item... it’s tricky at first but gets much easier ... does that help? 🙏🏻

  • @theluckystoveshow
    @theluckystoveshow 3 роки тому

    This was fantastic!!!! Thank you so much. Like OMgoodness, I can't believe how easy this was with your help! I really appreciate this and hope that you are still uploading videos because I totally became a subscriber!

  • @rahulektare5120
    @rahulektare5120 4 роки тому +3

    You should paste the css text in description so anyone can copy and paste and no need to type. very helpful btw

  • @manuelbean
    @manuelbean 3 роки тому +1

    Thank you! Is there a way for the button to become thinner?

    • @narayguy
      @narayguy  3 роки тому

      Yes of course adjust button size or border size in elementor

  • @uwaycarlisle
    @uwaycarlisle 3 роки тому +1

    Great tutorial!!! Thank you!

  • @afelling412
    @afelling412 4 роки тому +1

    Thank you so much for this video! My menu button text wasn't centered in the button... any suggestions on how to address this?

  • @isttra
    @isttra 4 роки тому +1

    This was awesome! Thank you so much. Everything worked perfectly, except for the link color on the hover. I double-checked to be sure I had the right CSS added, but the link text still stayed the same color when hovered over. I came up with a work-around, but am wondering if something in my theme is overriding the additional CSS? Any ideas? I see you mention the !Important below, but I am not sure how to implement that. Newbie here. Thanks!

    • @narayguy
      @narayguy  4 роки тому

      Put !important within the css command right before the ; yeah perhaps your theme is overriding, or you’ve target the text instead of the a

    • @isttra
      @isttra 4 роки тому

      @@narayguy That fixed it! Thank you very much!

  • @gobrad
    @gobrad 4 роки тому +1

    Hi Greg, thanks so much for this video and you make it fun too... Is there a way to make this button in the menu bar smaller?... I'm getting a BIG button ?? Many thanks

    • @narayguy
      @narayguy  4 роки тому

      Yes indeed Ant try reducing margin 👌👌

    • @gobrad
      @gobrad 4 роки тому

      Hi Greg, many thanks for your prompt response.... All parameters work except "Margin" ??? Here is what i have
      #menu-item-1872 {
      border: 5px solid #FF0000;
      border-radius: 10px;
      padding: 0px 15px;
      margin-left: 12px:
      }
      #menu-item-1872:hover {
      background-color: white
      }

  • @trueexpertmovers
    @trueexpertmovers 3 роки тому +1

    Nailed it dude

    • @narayguy
      @narayguy  3 роки тому

      One of our best wordpress tuts for sure :)

  • @shashobarron
    @shashobarron 4 роки тому +2

    Thank you, was so useful. How can I manage the height and width of the button, as well as its margins and the black color of text, of the primary menu, please? Thanks again.

    • @shashobarron
      @shashobarron 4 роки тому

      Any comment? Thanks.

    • @jwoody7743
      @jwoody7743 4 роки тому

      Shasho Barrón You can change the height and width simply by typing height: (pixel amount) and width: (pixel amount)

  • @fabricequirin8494
    @fabricequirin8494 4 роки тому +2

    Thanks, exactly what I was after ! we need more of this and less plugins !

  • @myvan8529
    @myvan8529 3 роки тому

    Thanks Greg for the very useful tutorial!

    • @narayguy
      @narayguy  3 роки тому

      Yes of course doin what I do thanks for commenting!

  • @teraross
    @teraross 5 років тому

    Greg - thank you so much! You made this so easy and beginner-user friendly.

  • @jaybillups2063
    @jaybillups2063 3 роки тому +1

    Nice. Very helpful. Thank you

    • @narayguy
      @narayguy  3 роки тому

      Gotchu covered Jay!

  • @alejandragrandon9653
    @alejandragrandon9653 5 років тому +3

    Good tutorial, thanks. Does anybody know if it would be possible to change the text color in the button? (not the whole menu text, just the one in button) Thanks!

    • @narayguy
      @narayguy  5 років тому

      Thanks! Yes, got a video for you ua-cam.com/video/SuY3LhXwuzk/v-deo.html BTW we have our newest Ecommerce video live now if you're looking to make an online store, would love to have you there Alejandra! ua-cam.com/video/LNYY5lGZOcE/v-deo.html

  • @nubenegra809
    @nubenegra809 4 роки тому +1

    awesome tut man!!! can you do this with elementor? i ahve tried this method but cant seem to change the font color (background no problem). Thanks in advance

  • @lauracampbell9244
    @lauracampbell9244 3 роки тому +1

    This is a great tutorial! Thank you.

    • @narayguy
      @narayguy  3 роки тому +1

      So simple right?! I gotta figure out more tricks like this. Lmk any more tutorials needed Laura, thanks so much!

  • @mvelodeanngcemu5711
    @mvelodeanngcemu5711 4 роки тому +1

    I am also so greatful for this tutorial G.

    • @narayguy
      @narayguy  4 роки тому

      You’re so welcome, Mvelo! And I am grateful for your comment ☺️🙏🏻

  • @theallergyfriendlyvegetari2506
    @theallergyfriendlyvegetari2506 4 роки тому +1

    Thanks for this! I was going nuts and spending WAY too much time trying to figure out how to do this! What if you want the button on the menu to be a color when it's NOT hovered over? Can you please share the CSS for that?

    • @narayguy
      @narayguy  4 роки тому

      Try just background: color on the original a css. You’re so welcome btw!

  • @brettmillerlive
    @brettmillerlive 4 роки тому +1

    Great video, thanks for explaining everything so clearly ;)

  • @pachatatakenya
    @pachatatakenya 4 роки тому

    Nice video? Whats the case if the menu bar is colored?

  • @arlenebalagot2560
    @arlenebalagot2560 3 роки тому +1

    Hi! Is there a way to make the menu button link to a modal or popup using a selector in elementor?

    • @narayguy
      @narayguy  3 роки тому

      Yes of course! You need to install wp video lightbox plugin and add a css selector to the link of the button. i'll send you a video shortly on how to do it :)

  • @gobrad
    @gobrad 4 роки тому

    Hi, many thanks for this tutorial which i followed but i'm having difficulty with the size of the button... Its showing a little larger than the menu bar?

  • @seankells
    @seankells 4 роки тому +1

    Awesome video, thanks!

  • @riconthemove
    @riconthemove 4 роки тому +1

    Great video thank you.
    I'm a beginner and I wanted also to know how to add the title in the Menu Bar like you had in this website "Sarah Jones".
    I'm working with a theme called "Nirvana"... Is it possible that it is not possible to do it on the theme I'm working with?

    • @narayguy
      @narayguy  4 роки тому +1

      Hey no problem Riccardo happy to help! By title do you mean a logo? Yes theme will matter, this is done using astra free theme with the yoga starter site which make editing your Wordpress website so easy!
      Join me on Facebook to learn WordPress stuff, optimize your blogging, enjoy giveaways and more! Here’s the link:
      facebook.com/groups/DearBlogger

    • @riconthemove
      @riconthemove 4 роки тому

      @@narayguy got it, thanks a lot!

    • @riconthemove
      @riconthemove 4 роки тому

      yes i meant Logo

  • @Clean.1989
    @Clean.1989 3 роки тому

    Thank you so much! You make my day.

    • @narayguy
      @narayguy  Рік тому

      I'm so glad! You make my day too just by commenting!

  • @ElyziumPrime
    @ElyziumPrime 4 роки тому +1

    muchas gracias senor...esto fue muy útil

    • @narayguy
      @narayguy  4 роки тому

      Claro que si! Tengo que publicar un video sobre cómo hacer un sitio web de WordPress en español para ver los pasos completos, ¡pero me alegra que hayas podido crear esta función de websire!

  • @kuzetti
    @kuzetti 4 роки тому +1

    Great video! Helped alot!

  • @toromediaNL
    @toromediaNL 5 років тому +1

    Great, in my case I had to use a very long code as I also had a CSS class on the button that triggers my off-canvas form but got it to work eventually.

    • @narayguy
      @narayguy  5 років тому

      Good stuff always feels good to trouble shoot a long one

    • @mikevanbreugel5388
      @mikevanbreugel5388 4 роки тому

      I have this problem. What do you put behind the #?

  • @JessRileyPlays
    @JessRileyPlays 3 роки тому

    the border on top and bottom takes up the whole header. Is there a way to make it smaller? I copied the code exactly. Also thank you for the tutorial :)

  • @robmongeau3308
    @robmongeau3308 3 роки тому

    Thanks, this is exactly what i want to do but not in the header. i have a little in page nav menu and i want them all to be button like. Do i just do the same but with the link id of the menu item of that non header nav menu? thanks

  • @kuruvillamathewamos9659
    @kuruvillamathewamos9659 4 роки тому +1

    superb tutorial what is the code for keeping the button color stagnant

  • @animeshsinghpatel278
    @animeshsinghpatel278 4 роки тому

    Edit: I was using class previous so dot but using# made it very simple. Thanks again!!

  • @alvinsamson4481
    @alvinsamson4481 4 роки тому

    How to align it to the right and make it responsive? Thanks

  • @developwitharslan
    @developwitharslan 5 років тому +1

    Finally find something useful !

  • @umairsheikh4588
    @umairsheikh4588 4 роки тому +1

    How to make responsive button? It's weird on other devices.

  • @adrianovin755
    @adrianovin755 4 роки тому +1

    Hi there, thanks for the tutorials.
    For me however, it doesn't work.
    When I publish it, the previous settings (i.e. caps + hover text colors + etc.) disappear.
    The text becomes not Caps and the hover over text color changed.
    Why is this? Greatful for your answer.

    • @narayguy
      @narayguy  4 роки тому

      Hey Adrian! I’d guess maybe a small punctuation error or you need to use the !important command...
      If you’d like, please come join us on Facebook for fast Wordpress support and giveaways! Https://facebook.com/groups/DearBlogger

  • @kia4now
    @kia4now 4 роки тому +1

    can you tell us how to add it to the mobile hamburger menu?

    • @narayguy
      @narayguy  4 роки тому +1

      Thanks if you open your site in the screenfly mobile response tester then right click on the menu item where you want to add a button, you should see the correct css to work on!

    • @m0orash
      @m0orash 3 роки тому

      @@narayguy Can you explain more on this? Appreciate this great tutorial

  • @yashb7149
    @yashb7149 4 роки тому

    Do I need to create a child theme for this? Will all my custom CSS get overwritten with a new update in my theme?

  • @MOROCCOTV1
    @MOROCCOTV1 5 років тому +2

    Thank u dude

  • @shawomroy6687
    @shawomroy6687 4 роки тому

    Really good and useful tutorial

  • @wheretheskygrows
    @wheretheskygrows 3 роки тому

    This is a great tutorial thanks!. worked perfectly. My only issue is I cant change the font color of the button. It's currently black, but adding color:#ffffff!important; does not over write it. Any ideas? I'm using a Divi Child theme if that means anything

    • @narayguy
      @narayguy  2 роки тому

      Thanks! Just put a space in between the ffffff and the !important. If still nothing, try to update the css thru customize, advanced, css

    • @DidiAnandaRashmika
      @DidiAnandaRashmika 2 роки тому

      that's been my problem too!! with the space... still nothing...

    • @DidiAnandaRashmika
      @DidiAnandaRashmika 2 роки тому

      in a reply to a comment further down : Try some css like this:
      #menu-item-487 a {
      color: blue;
      }
      that worked perfectly... with the color code it didn't but the name of the color it did!

  • @harisimran3002
    @harisimran3002 3 роки тому +1

    everything worked but text hover color change doesn't

    • @narayguy
      @narayguy  3 роки тому +1

      Keep editing the css, could be just a space or punctuation off. You got this!

  • @Fahama
    @Fahama 5 років тому +1

    Thanks a bunch Mate!

    • @Fahama
      @Fahama 5 років тому

      What if a wanted to permanently change the color of that one button? to lets say black?

  • @ranjitzzz100
    @ranjitzzz100 4 роки тому +1

    Great! Thank you for sharing :)

  • @lawrenceip9108
    @lawrenceip9108 3 роки тому +1

    Thank you ✌😉🥂

  • @mickduncan3564
    @mickduncan3564 4 роки тому +1

    is there anywhere to copy and paste this?

    • @narayguy
      @narayguy  4 роки тому

      Yes customize then additional css

    • @mickduncan3564
      @mickduncan3564 4 роки тому

      @@narayguy its easier to just put then close round it, you need to do the css one

  • @puppiesrawesemz97
    @puppiesrawesemz97 4 роки тому +1

    This is great thank you! Next time, can you add the code and paste it to the description? :)

    • @narayguy
      @narayguy  4 роки тому

      For sure Aleena! Great tip 👏☺️ come hang in our Facebook group too for more Wordpress goodness facebook.com/groups/dearblogger

  • @TerenceMarais
    @TerenceMarais 3 роки тому

    Thanks a lot!

  • @alvaromome
    @alvaromome 4 роки тому +1

    I can't find the ID of the menu. It only says == $0, can someone help? It's a bought theme

    • @mondomarketing2262
      @mondomarketing2262 4 роки тому +2

      docs.themeisle.com/article/620-how-to-create-buttons-from-your-menu-items

  • @modernworldlanguage2388
    @modernworldlanguage2388 5 років тому +1

    You are awesome!!!

    • @narayguy
      @narayguy  5 років тому

      No you! 🤪😎

  • @narayguy
    @narayguy  5 років тому

    How to add a button to the standard wordpress menu navigation...you don't need to really build anything, just add some css to a custom link!

  • @MKTOriginals
    @MKTOriginals 4 роки тому

    Thank you for the video tutorial :)

  • @mustafacetin5100
    @mustafacetin5100 4 роки тому

    Which url is that?

  • @syriabma9799
    @syriabma9799 4 роки тому +1

    very helpful

    • @narayguy
      @narayguy  4 роки тому

      Thanks and great to see you here

  • @shahzebali2308
    @shahzebali2308 4 роки тому +1

    thnk you

  • @logicaloffensive1050
    @logicaloffensive1050 4 роки тому +1

    WoW, Thank you.......

    • @narayguy
      @narayguy  4 роки тому +1

      It’s easy, right?! ☺️👍

    • @logicaloffensive1050
      @logicaloffensive1050 4 роки тому

      @@narayguy Yes Sir! Dil Mange More Videos Like this

  • @christieshahanhoward1081
    @christieshahanhoward1081 4 роки тому +1

    Hi! Great video. Under "inspect," I'm only getting classes, not a menu item. I tried pulling out the menu item # in the code (#menu-item-6745) and followed your instructions but nothing changed. Can you clarify what I need to do to make this work? Here's the code I got under "inspect." Thanks!
    BUTTON

    • @narayguy
      @narayguy  4 роки тому

      Hey Christie! Ah css hurts when you are so close. Try using the entire wording inside the class “”. Just put a . at the start and paste in the whole class. Or you can also assign custom classes to menu items in appearance menus!

  • @markcerisano4268
    @markcerisano4268 4 роки тому +3

    It didn't work

  • @deeshervell7345
    @deeshervell7345 5 років тому +1

    Thanks!

    • @narayguy
      @narayguy  5 років тому

      👍👍🔎👨🏻‍💻

  • @marcodimario73
    @marcodimario73 4 роки тому +1

    thanks!!!

  • @Ilmkcharagh
    @Ilmkcharagh 5 років тому

    dear really awesome

    • @narayguy
      @narayguy  5 років тому +1

      New site idea ☺️

    • @Ilmkcharagh
      @Ilmkcharagh 5 років тому

      dear my css is not working in my wordpress webisyie could please help me

  • @halal-habit
    @halal-habit 5 років тому +1

    Nice tut. However, the problem is on the responsive side of the website. I did check the website and the website still looks the same :) Here's the mobile view of the website. prnt.sc/pib2jq

  • @SkeggiaX
    @SkeggiaX 4 роки тому +1

    :\ i'm the only one who didn't work?

    • @narayguy
      @narayguy  4 роки тому

      Haha nooo ::( is the css off?

    • @SkeggiaX
      @SkeggiaX 4 роки тому

      @@narayguy Nope, its on.
      I also used a css code to enlarge the page logo, so I'd say it works. I am using Elementor, if this can be useful

  • @joshuaehimare
    @joshuaehimare 4 роки тому +2

    I am really grateful for this tutorial Greg. Thanks a bunch, I learnt a lot.

  • @deanclark5622
    @deanclark5622 3 роки тому +1

    Thanks bro 🙏

  • @kargulo
    @kargulo 3 роки тому +1

    thank You for that

  • @modernizemysite
    @modernizemysite 4 роки тому +1

    Thank you!

    • @narayguy
      @narayguy  4 роки тому

      You’re welcome happy to help, Angelina!

  • @evgeny8925
    @evgeny8925 2 роки тому

    Thanks a lot!

  • @ahmadahmadi7156
    @ahmadahmadi7156 3 роки тому

    very useful

  • @achintya1535
    @achintya1535 4 роки тому

    Thankyou!

  • @idanshviro6487
    @idanshviro6487 3 роки тому +1

    Thanks you!

    • @narayguy
      @narayguy  3 роки тому

      For sure Idan! 👍👍