Add Button to WordPress Header Navigation Menu

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ธ.ค. 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.

  • @jimmy8968
    @jimmy8968 3 ปีที่แล้ว

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

  • @sarahmeyernc
    @sarahmeyernc 4 ปีที่แล้ว

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

  • @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!!

  • @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

    • @narayguy
      @narayguy  4 ปีที่แล้ว

      Good idea 😃

  • @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!

  • @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!

  • @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 👏☺️

  • @fabricequirin8494
    @fabricequirin8494 4 ปีที่แล้ว +2

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

    • @narayguy
      @narayguy  4 ปีที่แล้ว

      Totally!

  • @uwaycarlisle
    @uwaycarlisle 3 ปีที่แล้ว +1

    Great tutorial!!! Thank you!

    • @narayguy
      @narayguy  3 ปีที่แล้ว

      Very welcome!

  • @myvan8529
    @myvan8529 3 ปีที่แล้ว

    Thanks Greg for the very useful tutorial!

    • @narayguy
      @narayguy  3 ปีที่แล้ว

      Yes of course doin what I do thanks for commenting!

  • @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!

  • @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 th-cam.com/video/SuY3LhXwuzk/w-d-xo.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! th-cam.com/video/LNYY5lGZOcE/w-d-xo.html

  • @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 ☺️🙏🏻

  • @trueexpertmovers
    @trueexpertmovers 3 ปีที่แล้ว +1

    Nailed it dude

    • @narayguy
      @narayguy  2 ปีที่แล้ว

      One of our best wordpress tuts for sure :)

  • @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;
      }

  • @jaybillups2063
    @jaybillups2063 3 ปีที่แล้ว +1

    Nice. Very helpful. Thank you

    • @narayguy
      @narayguy  3 ปีที่แล้ว

      Gotchu covered Jay!

  • @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)

  • @brettmillerlive
    @brettmillerlive 4 ปีที่แล้ว +1

    Great video, thanks for explaining everything so clearly ;)

  • @animeshsinghpatel278
    @animeshsinghpatel278 4 ปีที่แล้ว

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

  • @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

  • @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?

  • @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  2 ปีที่แล้ว

      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 :)

  • @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!

  • @teraross
    @teraross 5 ปีที่แล้ว

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

  • @seankells
    @seankells 4 ปีที่แล้ว +1

    Awesome video, thanks!

  • @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!

  • @kuzetti
    @kuzetti 4 ปีที่แล้ว +1

    Great video! Helped alot!

    • @narayguy
      @narayguy  4 ปีที่แล้ว

      Wooo! 👌😎

  • @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? 🙏🏻

  • @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
      }

  • @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 #?

  • @kuruvillamathewamos9659
    @kuruvillamathewamos9659 4 ปีที่แล้ว +1

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

    • @narayguy
      @narayguy  4 ปีที่แล้ว +1

      Yo Amos! You’re gonna wanna try the opacity 100% I think

    • @kuruvillamathewamos9659
      @kuruvillamathewamos9659 4 ปีที่แล้ว

      @@narayguy how do I do that?

  • @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?

  • @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!

  • @developwitharslan
    @developwitharslan 5 ปีที่แล้ว +1

    Finally find something useful !

  • @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

  • @pachatatakenya
    @pachatatakenya 4 ปีที่แล้ว

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

  • @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!

  • @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

    • @narayguy
      @narayguy  3 ปีที่แล้ว

      Yes exactly

  • @shawomroy6687
    @shawomroy6687 4 ปีที่แล้ว

    Really good and useful tutorial

  • @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

  • @umairsheikh4588
    @umairsheikh4588 4 ปีที่แล้ว +1

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

  • @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

  • @alvinsamson4481
    @alvinsamson4481 4 ปีที่แล้ว

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

  • @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 :)

  • @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

  • @ranjitzzz100
    @ranjitzzz100 4 ปีที่แล้ว +1

    Great! Thank you for sharing :)

    • @narayguy
      @narayguy  4 ปีที่แล้ว

      Of course! 😀

  • @lawrenceip9108
    @lawrenceip9108 3 ปีที่แล้ว +1

    Thank you ✌😉🥂

  • @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!

  • @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

  • @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!

  • @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?

  • @TerenceMarais
    @TerenceMarais 3 ปีที่แล้ว

    Thanks a lot!

  • @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!

  • @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

  • @syriabma9799
    @syriabma9799 4 ปีที่แล้ว +1

    very helpful

    • @narayguy
      @narayguy  4 ปีที่แล้ว

      Thanks and great to see you here

  • @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

  • @modernworldlanguage2388
    @modernworldlanguage2388 5 ปีที่แล้ว +1

    You are awesome!!!

    • @narayguy
      @narayguy  5 ปีที่แล้ว

      No you! 🤪😎

  • @MKTOriginals
    @MKTOriginals 4 ปีที่แล้ว

    Thank you for the video tutorial :)

  • @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

  • @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

  • @mustafacetin5100
    @mustafacetin5100 4 ปีที่แล้ว

    Which url is that?

  • @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!

  • @marcodimario73
    @marcodimario73 4 ปีที่แล้ว +1

    thanks!!!

  • @shahzebali2308
    @shahzebali2308 4 ปีที่แล้ว +1

    thnk you

  • @deeshervell7345
    @deeshervell7345 5 ปีที่แล้ว +1

    Thanks!

    • @narayguy
      @narayguy  5 ปีที่แล้ว

      👍👍🔎👨🏻‍💻

  • @markcerisano4268
    @markcerisano4268 4 ปีที่แล้ว +3

    It didn't work

    • @narayguy
      @narayguy  4 ปีที่แล้ว

      Which part? :(

  • @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

  • @deanclark5622
    @deanclark5622 3 ปีที่แล้ว +1

    Thanks bro 🙏

  • @joshuaehimare
    @joshuaehimare 4 ปีที่แล้ว +2

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

  • @modernizemysite
    @modernizemysite 4 ปีที่แล้ว +1

    Thank you!

    • @narayguy
      @narayguy  4 ปีที่แล้ว

      You’re welcome happy to help, Angelina!

  • @kargulo
    @kargulo 3 ปีที่แล้ว +1

    thank You for that

    • @narayguy
      @narayguy  3 ปีที่แล้ว

      Yes of course

  • @evgeny8925
    @evgeny8925 2 ปีที่แล้ว

    Thanks a lot!

    • @narayguy
      @narayguy  2 ปีที่แล้ว

      Very welcome! :)

  • @achintya1535
    @achintya1535 4 ปีที่แล้ว

    Thankyou!

  • @ahmadahmadi7156
    @ahmadahmadi7156 3 ปีที่แล้ว

    very useful

    • @narayguy
      @narayguy  3 ปีที่แล้ว

      Gotchu covered!

  • @idanshviro6487
    @idanshviro6487 3 ปีที่แล้ว +1

    Thanks you!

    • @narayguy
      @narayguy  3 ปีที่แล้ว

      For sure Idan! 👍👍