[Resolved] Boxing a phone number

Home Forums Support [Resolved] Boxing a phone number

Home Forums Support Boxing a phone number

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #570870
    John

    I like the way the Peak theme boxes the phone number as a menu item. I found the css in the theme :

    .main-navigation:not(.toggled) ul li.menu-button a {
    	border-width: 1px;
    	border-style: solid;
    	line-height: 40px;
    }

    This appears to put the border around it, yet when I try it on my own site I don’t see this class to target and hence the code doesn’t work for me. Can you help me figure out what class to target to get the same effect? Thank you!

    #570904
    David
    Staff
    Customer Support

    The simplest method is to give the menu item a custom class using these instructions:

    https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes

    And then style it like so:

    .main-navigation .my-custom-class a {
        border: 1px solid;
        /* other CSS for your button */
    }
    #570938
    John

    Thanks! Another secret (to me) hidden in those screen options.

    #570997
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.