How to Add a Button in Your WordPress Header Menu

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 33

  • @wpbeginner
    @wpbeginner  2 года назад +1

    🔴 How to Install Google Analytics for WordPress 👉 ruclips.net/video/TWSrpXQDSbk/видео.html

  • @motus94
    @motus94 2 года назад +1

    Thank you very much from Paris.

  • @DecouvrirLaTechnologie
    @DecouvrirLaTechnologie 2 года назад

    Thank you, you saved me a lot of headeaches !

  • @wpglob-wordpresstutorials
    @wpglob-wordpresstutorials 2 года назад +4

    I have been searching for this for quite a long time. Thank you so much!!!

  • @nicksvlog881
    @nicksvlog881 Год назад

    Thank you.

  • @askapathologist-esraaesmat3669
    @askapathologist-esraaesmat3669 2 года назад

    Thank you very much

  • @saifurrehman6756
    @saifurrehman6756 2 года назад

    Thanks for such guidance. I am curious to know, once we update our theme, this custom code will stay or not?

    • @wpbeginner
      @wpbeginner  2 года назад +1

      Using the method from this guide, it should stay.

    • @saifurrehman6756
      @saifurrehman6756 2 года назад

      @@wpbeginner Thanks a million.

  • @builder5182
    @builder5182 2 года назад

    Hi, how do you reduce the width of the button and change the colour of the active button? Appreciate it, a great video.

    • @wpbeginner
      @wpbeginner  2 года назад +1

      For that, you would need to use CSS to customize it. We have a guide below explaining how to use inspect element to customize things like the button.
      www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/

  • @awakinmenshealth4347
    @awakinmenshealth4347 Год назад

    thanks. however on my mobile site the button color surrounding the text is higher on the dropdown menu. How do I correct this on the mobile version?

    • @wpbeginner
      @wpbeginner  Год назад

      It would depend on your specific theme but you would likely need to tweak the CSS for your specific theme. For a starting point we would recommend taking a look at our article below:
      www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/
      To test how the tweaks would affect the button.

  • @luziasousa436
    @luziasousa436 2 года назад

    Hi, help. the button is fitting perfect on desketop, but on mobile it's looking weird. Is there a way to set different width for mobile and desktop? i am from Brazil. 😍

    • @wpbeginner
      @wpbeginner  2 года назад

      You would need to add CSS and specify the screen width similar to the below and add the CSS between the {}
      @media screen and (min-width: 600px) {
      }

    • @luziasousa436
      @luziasousa436 2 года назад

      @@wpbeginner I did not make it. the button did not fill the width space on mobile.

  • @prolearner3729
    @prolearner3729 2 года назад +1

    how to add button in container?

    • @wpbeginner
      @wpbeginner  2 года назад

      It would depend on the container, for a starting point we would recommend taking a look at our article below:
      www.wpbeginner.com/plugins/how-to-add-buttons-in-wordpress-without-using-shortcodes/

  • @KabalKhajaliya
    @KabalKhajaliya 2 года назад

    Yoast seo not showing my woldpress post ?

    • @wpbeginner
      @wpbeginner  2 года назад

      You would likely want to check in your screen options to ensure it is displaying, otherwise you would want to reach out to Yoast's support using the forum below:
      wordpress.org/support/plugin/wordpress-seo/

  • @NicoleTongue
    @NicoleTongue Год назад

    This does not account for any padding and so I have a giant smear from the text all the way to the bottom of my menu and it does not look good. I need where the button background color will just surround the text only and not the entire background.

    • @wpbeginner
      @wpbeginner  Год назад

      Sadly, our articles cannot account for every styling available. Our guide below on Inspect element should be able to help find the padding that you can change or if you reach out to the support for your specific theme they can normally assist with small customizations like this.
      www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/

  • @anumr2897
    @anumr2897 Год назад

    Cannot get the code link in your description

    • @wpbeginner
      @wpbeginner  Год назад

      You should be able to get the code in our article below:
      www.wpbeginner.com/wp-tutorials/how-to-add-a-button-in-your-wordpress-header-menu/

  • @avgytenjoyer91
    @avgytenjoyer91 11 месяцев назад

    you were so close to telling me what I need to know then you skipped it. My template came with a button and I have no idea how to edit it.

    • @wpbeginner
      @wpbeginner  11 месяцев назад

      It would depend on the specific template, if you have not done so already, we would recommend checking with the support for your theme and they can normally help if there is a specific customization for your theme to edit the button.

  • @alexanderpadalka5708
    @alexanderpadalka5708 2 года назад

    💘