Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #1042785

    I’d like to move my main menu (top menu) down a bit closer to the breadcrumb header area (more inline with the bottom of my logo subtext).

    I found this: https://kriesi.at/documentation/enfold/example-of-menu-left-widget-center-logo-right/#toggle-id-2
    but I am not entirely clear on what each term actually refers to, so I am not sure what to pick.

    If y’all can at least let me know which of those I am looking for, I can play with the settings and probably figure it out.

    Thanks!
    Jon

    PS. Alternatively, I think figuring out how to get my logo subtext to the right of logo and subtext not stacked on itself will get this thread issue partially fixed. The other thread for the subtext issue is this: https://kriesi.at/support/topic/logo-image-with-subtext-break-subtext-into-2-lines-ideally-to-the-right/#post-1042240

    Still,
    jon

    #1042834

    Hey gatehealing,
    You could use some css like this:

    nav.main_menu {
    top: 40px !important; 
    }

    2018-12-09-160325
    But perhaps we could be of more assistance with a url to your project.
    This documentation explains how to put the subtext to the right of your logo.

    Best regards,
    Mike

    #1042848

    Hi Mike,
    My website is https://gatehealing.com/
    Yes, I had discovered the code for subtext to the right of the logo, but it has been stacking words on top of one another vs extending them out to the right.
    I’ll try the code you gave me just to get the menu down a little bit for now.

    J

    #1042938

    I put this in the other thread, but I have not seen a response in several days, so I don’t know if it will be seen–if it was marked as read, I know it won’t be seen:

    As I mentioned, I have the code to put the subtext on the right.
    I also found the code to change the size of the logo, but if I change the width to less than about 300px, I begin to get words stacked on top of each other, and I cannot seem to get the words up against the logo. I am guessing I’ll need this to be responsive for mobile devices, but I think there is other code for doing something different on mobile devices (right?) :
    #top .logo ,
    #top .logo a {
    width: 300px;
    }
    @media only screen and (max-width: 767px) {
    #top .logo ,
    #top .logo a {
    max-width: 60% !important;
    width: 60% !important;
    height: auto;
    }}

    #1043583

    Hi,
    I took a look at your sub-text and logo, and to have the sub-text next to the logo I tested this css:

    @media only screen and (max-width: 767px) {
    .responsive #top .logo {
        width: 25% !important; 
    }

    Please try the code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field
    Please see the screenshot in Private Content area.
    I also noticed that your menu is quite large and for tablets (768px) the menu items are stretching under the logo. I would recommend having the mobile menu show until 1030px with this css:

    @media only screen and (max-width: 1030px) and (min-width: 768px) {
      .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item {
        display: none !important; 
      }
    
      .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special {
          display: block !important; 
      }
    }

    Best regards,
    Mike

    #1043611

    Thanks Mike,

    Regarding size of menu: When I added that code, my iPhone burger menu is tough to open because it is so close to the subtext (may be easier on a larger phone than an iphone7). When I scroll down through the menu items once the burger is open, the subtext remains and the menu items scroll through it.

    Regarding the subtext being at the right of the logo, see the code that I added in order to get it on desktop/laptop below (next sentence addresses that we may need to pick this up in thread specific to this topic). I don’t know if the way I accomplished it is the most efficient or not, or if there is a way to better accomplish it that builds in more effective responsiveness for mobile and tablets so that tap targets aren’t so close together (since subtext is clickable to same url as logo, and burger is right under it, as is search icon).

    I don’t know if this was the thing to do, but since this is a fairly specific new topic that is not directly related to the title of this thread, I started a new one: https://kriesi.at/support/topic/log-subtext-is-on-right-of-logo-but-words-stack-on-top-of-one-another/#post-1043479

    I added this to that thread earlier, however, while this seems to work on laptop/desktop, I get the subtext pushed to the right:

    I have basically figured it out on laptop/desktop by adding Width (also adjusted translate(xxx%, -50%) to the following code, but on mobile devices, it pushes it way over to the right. I will leave it as is for now so you can see it at https://gatehealing.com/ :

    /* Subtext to right of logo */
    .logo .subtext {
    position: absolute;
    top: 50%;
    right: 0;
    width: 275px;
    transform: translate(102%, -50%);
    z-index: 999;

    Jon

    #1043922

    Now I have subtext on 2 lines on my iphone 7, but burger menu is so close to the clickable subtext that you have to click below the burger menu to access menu, or else you get the logo subtext url that just takes you back to home page.

    There must be a workaround, like not showing logo on mobile, or putting subtext below logo on mobile?
    J

    #1043971

    For now, until I can get just the logo hidden only on mobile, and subtext hidden only on tablet, I have hidden the entire logo area with this (I changed max-width to 1030px):
    /* Hide logo in mobile*/
    @media only screen and (max-width: 1030px) {
    #main .av-logo-container {
    display: block;
    }
    #header .logo,
    #main .logo {
    display: none!important;
    }}

    I will continue to play with the code to try and figure out how to:
    1) Hide only the logo on mobile devices (because the burger menu prevents subtext from overlapping anything)
    2) Hide only the subtext on tablets (because tablets don’t have the burger menu, so the written items do overlap the subtext)

    Any help is much appreciated.

    #1044133

    Hi,
    To hide the logo and subtext on mobile, and only hide the subtext on tablet, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media only screen and (max-width: 767px) { 
    .responsive #top .logo,.responsive #top .logo .subtext {
    display: none !important;
    }
    }
    @media only screen and (max-width: 1023px) { 
    .responsive #top .logo .subtext {
    display: none !important;
    }
    }

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1044568

    Thanks Mike,
    I only wanted to hide the Logo on mobile though. The burger menu on phones seems to leave plenty of room for my subtext on cell phones.

    I don’t have my ipad with me, so you may have given me code to hide subtext only on tablets and hide logo only on mobile.

    Thanks for the help.
    J

    #1044674

    Hi,
    Thanks for the feedback, to hide the logo only on mobile, and show the subtext. I found that the subtext needed to move to the left and that font needed to drop down from 20px to 17px.
    This also hides the subtext for tablet screen size.

    @media only screen and (max-width: 767px) { 
    .responsive #top .logo img {
    display: none !important;
    }
    .responsive #top .logo .subtext {
    transform: translate(2%, -50%) !important; 
    width: 235px !important; 
    }
    .logo .subtext h1 {
    font-size: 17px !important; 
    }
    }
    @media only screen and (min-width: 768px) and (max-width: 1023px) { 
    .responsive #top .logo .subtext {
    display: none !important;
    }
    }

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1044687

    Works great on my iphone7. I’ll check on my ipad2 tomorrow. Looking at tablet view in Appearance > Customize, it looks like subtext is pushed over to the right, and the white space to the left is clickable as logo area. I’m confused with that since if I’m reading the code correctly, it looks it says that between 768px and 1023px, that the subtext should be hidden, but the logo shown (which is what I want), but on that viewer, there’s no logo and subtext is present.

    I’m trying to learn this stuff as I go along.
    J

    #1044731

    Hi,
    Please see the screenshot in Private Content area, for what I see between 768px and 1023px, in Chrome dev tools. Perhaps the WordPress > Customizer is favoring another media query instead, I would need to investigate further, but Chrome, Firefox, & Edge are displaying it correctly. Are you using the Chrome browser? I would recommend testing with it instead. This article will help a lot with learning how to use it and I’m sure there are some great videos on YouTube also.

    Best regards,
    Mike

    #1044981

    AH! I bet that’s it. I use Firefox out of habit and familiarity, but I’ll change to Chrome.

    I will check chrome now and read the link you sent to help me learn it.

    Thanks again! I’ll be at my ipad in a bit. My guess is it will work just fine on that.

    Final question (I think): On my desktop/laptop, I just added the width line to move the subtext to the correct place (see below). Is there a more efficient way to do that where the distance from the edge of the logo is relative to the logo vs a defined pixel distance?
    Here’s what I have for now:
    /* Subtext to right of logo */
    .logo .subtext {
    position: absolute;
    top: 50%;
    right: 0;
    width: 275px;
    transform: translate(102%, -50%);
    z-index: 999;

    #1045103

    Hi,
    This looks right to me for what you are trying to do. Please let us know if it works for you.

    Best regards,
    Mike

    #1045385

    Looks good! Subtext pushes to right in landscape position, which leaves a large white space to the left, but I am not overly concerned about that. I’ll see if I can play a bit with it to get landscape orientation to bring subtext back over to the right.

    Thanks for everything!
    Jon

    #1045521

    Hi,
    To change the subtext location adjust the “transform: translate(2%,-50%) !important;” in the code above.
    To ensure that your adjustment only effects your iPad 2 in landscape mode, please add your new rule to this media query:

    @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
      /* For landscape layouts only */
    }

    Then ensure to clear your browser cache.

    Best regards,
    Mike

    #1045708

    I changed to (2%,-50%), and added the code you mentioned. Cleared caches in wordpress and iphone browser history/caches, but the subtext is still pushed to the right . . . that’s still really not a huge deal though. Here’s what i have in total for this — could the chunck of code in the Subtext Styling block be redundant? I do see that I have 102% there, but I think that section is for laptop/desktop (changing the 102% there to 2% causes the subtext to go all the way to the left and overlap the logo):

    /*————————–*/
    /* CSS – Subtext on right*/
    /*————————-*/
    #top .logo,
    #top .logo a {
    overflow: visible;
    }
    /*—————-*/
    /* Subtext styling */
    /*—————-*/
    .logo .subtext h1 {
    font-size: 20px;
    font-weight: 550;
    }

    .logo .subtext {
    position: absolute;
    top: 50%;
    right: 0;
    width: 275px;
    transform: translate(102%, -50%);
    z-index: 999;
    }

    /*——————–*/
    /* Hide logo in mobile*/
    /*——————–*/
    @media only screen and (max-width: 767px) {
    .responsive #top .logo img {
    display: none !important;
    }
    .responsive #top .logo .subtext {
    transform: translate(2%, -50%) !important;
    width: 235px !important;
    }
    .logo .subtext h1 {
    font-size: 17px !important;
    }
    }
    @media only screen and (min-width: 768px) and (max-width: 1023px) {
    .responsive #top .logo .subtext {
    display: none !important;
    }
    }
    @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
    /* For landscape layouts only */
    }

    #1045749

    Hi,
    The 102% is for your desktop and the 2% is for your mobile devices, perhaps we should declare that it’s for portrait by changing your css to this:

    @media only screen and (max-width: 767px) and (orientation:portrait) {
    .responsive #top .logo .subtext {
    transform: translate(2%, -50%) !important;
    width: 235px !important;
    }
    }

    Please leave the rest of the rule as is because it doesn’t matter with orientation:

    @media only screen and (max-width: 767px) {
    .responsive #top .logo img {
    display: none !important;
    }
    .logo .subtext h1 {
    font-size: 17px !important;
    }
    }

    Then this should landscape orientation should work:

    @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
    .responsive #top .logo .subtext {
        transform: translate(-65%,-50%) !important;
    }
    }

    *the -65% is what looked good in my Chrome browser, but you may need to adjust for your iPad

    Best regards,
    Mike

    #1046057

    This is now what I have. I have bolded the chunk not mentioned in your last reply–seems like it is still necessary, so I did not remove it (when I tried removing bolded chunk, it did not change the landscape situation on iphone 7). This now has the subtext pushed all the way over to the right, covering the burger menu:
    /*——————–*/
    /* Hide logo in mobile*/
    /*——————–*/
    @media only screen and (max-width: 767px) {
    .responsive #top .logo img {
    display: none !important;
    }
    .logo .subtext h1 {
    font-size: 17px !important;
    }
    }
    @media only screen and (max-width: 767px) and (orientation:portrait) {
    .responsive #top .logo .subtext {
    transform: translate(2%, -50%) !important;
    width: 235px !important;
    }
    }
    @media only screen and (min-width: 768px) and (max-width: 1023px) {
    .responsive #top .logo .subtext {
    display: none !important;
    }
    }
    @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
    /* For landscape layouts only */
    }

    #1046060

    I think this may be taking too much of y’all’s time for a relatively minor issue since having the subtext pushed over to almost center in landscape orientation on mobile phones isn’t really a big deal as it does not block access to the burger menu. I have reverted code back to what we had before most recent reply.

    I really do appreciate all of the effort! Thank you a bunch.
    Jon

    #1046083

    Hi,
    Very good, thanks for your patience and using Enfold.
    Glad we were able to help, we will close this now.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Move top menu down’ is closed to new replies.