badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Change Height of primary menu container

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #40507
    Lee Ann
    Participant

    This is great! How do we get the sub-menu to be lower as well? Thanks!

    #40585

    Hi Lee Ann,

    Sorry! What you are trying to say? Can you please clarify it more?

    Thank you!

    #40965
    Lee Ann
    Participant

    I was responding to the original post: https://www.themehorse.com/support-forum/topic/change-height-of-primary-menu-container/

    I entered your code to change the height of the primary horizontal menu.

    #access a {
    height: 45px;
    padding-top: 25px;
    }
    .search-toggle {
    margin-top: 25px;
    }
    #site-logo {
    margin-top: 18px;
    }
    #access ul li ul {
    top: 70px;
    }

    @media
    only screen and (max-width: 767px) {
    #site-logo {
    margin: 10px 0;
    }
    .menu-toggle {
    margin-top: 17px;
    }
    }

    BUT – now the mobile menu is super spaced out. How can I fix this? Here is all of the Custom CSS I have:

    #access a {
    height: 45px;
    padding-top: 95px;
    }
    .search-toggle {
    margin-top: 25px;
    padding-top: 70px;
    }
    #site-logo {
    margin-top: 18px;
    }
    #access ul li ul {
    top: 70px;
    }

    @media
    only screen and (max-width: 767px) {
    #site-logo {
    margin: 10px 0;
    }
    .menu-toggle {
    margin-top: 17px;
    }
    }
    #access ul li ul {
    top: 120px;
    }
    hr{
    padding: 5px;
    margin: 0px;
    margin-top:-1em;
    }

    #41022

    Hi Lee,

    Please go to the Appearance > Customizing > Layout Options > Responsive Layout and ON the responsive layout and just paste the below code in custom CSS and remove your all code:

    #access a {
        height: 45px;
        padding-top: 25px;
    }
    .search-toggle {
        margin-top: 25px;
    }
    #site-logo {
        margin-top: 18px;
    }
    #access ul li ul {
        top: 70px;
    }
    @media only screen and (max-width: 767px) {
        #site-logo {
            margin: 10px 0;
        }
        .menu-toggle {
            margin-top: 17px;
        }
    }

    Thank you!

    #41047
    Lee Ann
    Participant

    Thank you for your response, however, this does not fix my problem. The reason I have that code the way it is, is because we don’t want our menu at the top of the page, we want it closer to the line and the sub-menu items to show up right below the menu items when hovered over, which is what I did. The problem is that it is messing up the spacing on the (already turned on) responsive design on a phone. Is there a way to just fix the CSS for the phone?

    Thank you!

    #41117

    Hi Lee,

    Could you please provide us the site URL? So that we can see your site in mobile devices and provide you a exact CSS code.

    Thank you!

    #41130
    Lee Ann
    Participant
    #41239

    Hi Lee,

    Thank you for the site URL.
    Edit your custom CSS accordingly to the below one:

    #access a {
        height: 81px;
        padding-top: 65px;
    }
    .search-toggle {
        margin-top: 25px;
    }
    #search-box {
        top: 100px;
    }
    
    @media only screen and (max-width: 767px) {
    	.menu-toggle {
    		margin-top: 57px;
    	}
    	#access a {
    		float: none;
    		padding: 10px 0;
    		height: inherit;
    	}
    }

    Thank you!

    #41255
    Lee Ann
    Participant

    From that I updated some of the code and it has been fixed. Thank you!!

    #41279

    That’s great Lee Ann

    Thank you!

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