Site logo

[Support request] Restore or recreate original Read template main menu selected category underline

Home Forums Support [Support request] Restore or recreate original Read template main menu selected category underline

Home Forums Support Restore or recreate original Read template main menu selected category underline

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2471136
    Jacob

    Hello,

    I somehow removed the underline from the selected topic/category on the main menu (at the top) that was there when I first installed the Read template (see Subscribe on the upper right): underline of selected menu item

    I actually reinstalled the template and started from scratch, but that didn’t fix the problem.

    What steps should I take to add the underlined to my site’s menu the way it camee installed (hairbasepro.com)?

    Thanks!

    #2471141
    Fernando
    Customer Support

    Hi Jacob,

    I don’t think there’s an underline there by default. To clarify, are you looking for something like this?: https://share.getcloudapp.com/WnuZYPXd

    If so, try adding this through Appearance > Customize > Additional CSS:

    div#primary-menu > ul > li.current-menu-item  {
        box-shadow: 0px -8px 0px var(--accent) inset;
    }
    #2471148
    Jacob

    Thanks for the quick reply!

    Yes, that image is correct.

    I see about 63 lines of code though – where would I add what you provided?

    #2471154
    Fernando
    Customer Support

    You can add it actually anywhere, but to be safe and not ruin other codes, add it at the very bottom.

    #2471156
    Jacob

    I actually figured it out, but have a related question.

    In the CSS, I see the following label and code:

    /* navigation subscribe underline */
    
    .main-navigation:not(.slideout-navigation) .main-nav li.subscribe-button a {
    	box-shadow: 0px -8px 0px var(--accent) inset;
    	transition: all 0.6s ease 0s;
    	padding: 0px;
    	margin: 0px 20px
    }
    
    .main-navigation:not(.slideout-navigation) .main-nav li.subscribe-button a:hover {
    	box-shadow: 0px -16px 0px var(--accent) inset;
    }

    I added a subscribe option to the menu, but it doesn’t have the underline from your screenshot. Should it?

    #2471165
    Fernando
    Customer Support

    That’s just for a single button with the class subscribe-button. Are you wanting to apply the underline one button or for the “current” button selected?

    #2471166
    Jacob

    I tried it with the code you provided but didn’t like it, and would rather just have an underlined subscribe-button like the default template. How do I accomplish that?

    #2471170
    Fernando
    Customer Support

    If you want it statically, you can go to Appearance > Menus, and then click on Screen Options. Then, enable CSS Classes. Example: https://share.getcloudapp.com/d5uy1dZp

    Afterward, add that class to a Menu Item. Example: https://share.getcloudapp.com/12uRAZwA

    If you want a different behavior, let us know.

    #2471172
    Jacob

    Perfect – thank you!

    #2471175
    Fernando
    Customer Support

    You’re welcome, Jacob!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.