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

    I would like to replace the existing mobile menu icon for fullwidth subemenu. actually it should look the same like the hamburger menu icon (default use in main menu).

    many thanks in advance for any assistance.

    #863529

    Hey Susanne,

    Please refer to this post – http://kriesi.at/documentation/enfold/change-icon-used-for-standard-theme-elements/

    Best regards,
    Yigit

    #1003433

    Hello

    I have a related question to an icon placed in fullwith submenu. In this, the first item is a Custom Link with the navigation label set to this house icon shortcode: [av_font_icon icon='ue821' font='entypo-fontello' style='' caption='' link='page,3262' linktarget='' size='20px' position='left' color=''][/av_font_icon] and the URL set to our home page..

    Per the link below, you can see this works fine on desktop. On mobile hamburger menu, that first item, the icon, does not display and there is just a blank line, but the link stile works. The other text links appear fine.

    Please help when you have a moment.

    Thanks.

    #1003956

    Hi,

    Please try to add this code to the quick css field:

    
    @media only screen and (max-width: 767px){
    .responsive #top #wrap_all .av-menu-mobile-active .av-subnav-menu > li a.av-icon-char:before {
    content: attr(data-av_icon);
    font-family: 'entypo-fontello';
    }
    }
    

    Best regards,
    Dude

    #1004185

    Hi Dude, Thanks very much for the code, but it worked partially — the icon is tiny like a dot! So how to bring it to normal size in the code you gave. Also one more thing, on the normal main menu (see 2nd line below or click the logo), the Free Trial button and cart icon are not vertically aligned properly like other menu items on mobile. I haven’t worried about it but would be nice to fix. Thanks

    #1004651

    Hi,

    Add font size to the previous code to make the icon large.

    CSS Snippet:

    
    /* CSS  */
    
    @media only screen and (max-width: 767px){
    .responsive #top #wrap_all .av-menu-mobile-active .av-subnav-menu > li a.av-icon-char:before {
    content: attr(data-av_icon);
    font-family: 'entypo-fontello';
    font-size:18px!important;
    }
    }
    
    /* Mobile menu item alignment */
    #av-burger-menu-ul li:nth-child(6) a {
    	position:relative!important;
    	transform: translateY(10px);
       padding-top:30px!important;
    }
    
    #av-burger-menu-ul li:nth-child(7) a span {
    	position:relative!important;
    	transform: translateY(10px);
       padding-top:30px!important;
    }
    
    
    

    Best regards,
    Vinay

    #1004755

    Hi Vinay

    Thanks, that helped a lot, thanks but is not still working properly:

    a) I centred the Try free button but when I mouse over to highlight, the cursor highlight grey bar is not centred on it.
    b) I placed the cart icon properly too, but the highlight is not over it and actually above the divider line so partly overlapping the Free trial button.

    Here’re my small change in the translateY and padding-top (although same problem with your values)

    /* Mobile menu item alignment */
    #av-burger-menu-ul li:nth-child(6) a {
    position:relative!important;
    transform: translateY(13px);
    padding-top:20px !important;
    }

    #av-burger-menu-ul li:nth-child(7) a span {
    position:relative!important;
    transform: translateY(13px);
    padding-top:20px!important;
    }

    c) The icon does not become any bigger with the size addition; in fact it’s missing and just a right triangle is there like on the other menu items.

    Please advise when you have a moment.

    Thanks

    #1004756

    Forgot to add, the cursor is also half height on the icon area so there are ‘two’ And on Free trials in red, when highlighted, Free trials is not inverting to white though that’s probably my fault, but I can’t figure out how to fix it.

    Thanks

    #1004789

    Hi,

    There is no easy way to position the background please use the below code to remove the background color instead.

    The right triangle is available only when there are submenu items.

    #av-burger-menu-ul li:nth-child(7) a:hover,
    #av-burger-menu-ul li:nth-child(6) a:hover {
    	background:none!important;
    }
    
    /* hide home icon in mobile menu */
    #top.page-id-7230 .av-subnav-menu li:nth-child(1) a{
     		display:none;
     }
    
    

    Best regards,
    Vinay

    #1005143

    Hi Vinay

    Thanks for that. Removing the background is OK.

    It works as you gave, but I noticed on mobile (resize the window on desktop to be mobile size as it’s easier to see), that if you move the cursor through the menu from Pricing down through Free Trial to the cart, the target urls change properly and over the button you get the Free Trial url, but when you drop right below the button at its outline, you get the cart url and that stays, then disappears and then reappears when the cursor is right on the cart icon. Which is weird.

    I tried playing with the transform and padding anyway as the way you had it the cart would bounce into position; my way it just appears at the right spot so I have

    /* Mobile menu item alignment */
    #av-burger-menu-ul li:nth-child(6) a {
    transform: translateY(13px);
    padding-top:20px !important;
    }

    #av-burger-menu-ul li:nth-child(7) a span {
    transform: translateY(0px);
    padding-top:33px !important;
    }

    I also removed from your code
    position:relative!important;
    as it made no difference I could see.

    But in any case, my way or your way, the link as described is appearing in two places. Hopefully it’s easy to fix but if not, it will do.

    Thanks again

    #1005310

    Hi,

    I’m not sure why that’s happening, please post the WordPress login details so I can further investigate this issue.

    Best regards,
    Vinay

    #1005785

    Ok, please see below.

    #1006856

    Hi,

    I tried to troubleshoot this issue but the login credentials you provided do not work for me. Would you mind checking once again and then send us working login credentials?

    The user role for the account you send us should be set to ‘administrator’ so we can try to disable all plugins and add custom code (if necessary) to resolve the issue.

    Best regards,
    Vinay

    #1006956

    Sorry about that. See below for credentials.

    #1007430

    Hi,

    Thank you for the credentials. I checked the code in Quick CSS and found many errors errors upon linting. I have fixed the code and check the menu issue. The links appear properly now.

    Please clear the cache and review your site :)

    Best regards,
    Vinay

    #1008669

    Hi Vinay

    This is still not working. I tried on desktop clearing cache and Android. I attached a link below to three screenshot files showing the problems:

    a) kriesi-free trial mobile menu errors — which is the home (house) icon not showing in mobile.
    b) kriesi-mobile menu errors — which are the cursor position errors for the cart and button rows.

    And also there is this error

    c) kriesi-menu text colour error in edge — which is the menu button’s text colour incorrect in edge

    Thanks!

    #1010037

    Hi,

    I have added the styles to the child theme styles.css and made the necessary changes to add the home icon.

    The Free trial and cart links work properly in the mobile version. Please clear the cache and check again.

    We have a documentation guide to add the icons to the submenu element and most other customization are covered and it will be constantly updated please bookmark it for future reference.

    Best regards,
    Vinay

    #1010291

    No they still don’t all work.

    I removed the home icon in free trial sub menu as still doesn’t work. The vertical alignment was all wrong as attached link in the section below shows but as I wrote, I removed it now. However, that home icon still shows on Android after clearing cache even though I removed it from the menu! It can stay BUT I need to know what code you added and where that is as I can’t find that code anywhere so I can get rid of it if I want. Please let me know where you made all the changes and what they are.

    Also when making desktop smaller, the Free Trial sub-menu has the wrong font when the mobile menu is used. It shows in a serif font when a desktop window is sized to be as small as possible but should remain in the site default of Open Sans font on small desktop windows too. Android is fine. Please fix this as I don’t understand why that should even be happening.

    Also these errors are still there

    a) ON chrome and FF, the free trial button has white text. On Edge it is grey #63727e although the background is the same on all. Can you please fix appearance of the button so I get white text on Edge?

    b) the cart link is still not correct as the link is still in the wrong place. And this is obvious on Android as you can touch in the row above and on desktop in a small mobile sized window as you can see the link change when the cursor is still on the row above it. If you can fix it would be nice. Else leave as is BUT I would like to know where any changes you made or make are and what they are.

    Thanks

    #1010988

    Hi Vinay,

    Not sure if you are working on this but now the mobile menu on Android is working properly now without the home icon like the desktop.

    Only when you make the desktop browser smaller, the wrong font is used on the Free Trial menu as I explained.

    And on Edge, the Free Trial button text is Grey instead of White as I explained which needs to be fixed.

    However, I now have noticed a new problem.

    The main desktop menu item RESOURCES is a mega menu (or was). This morning it no longer is. Nor is there an option to reset it back to that. I also noticed if I add a new menu item and choose Mega Menu, the style is not correct (as the CSS is not being applied) and also, once I saved it, the mega menu option to set or unset it as a mega menu it has vanished from that new item too. So not sure what is going on. I tried turning off all element optimization and also deactivated all recent plug-ins but it had no effect.

    Please advise.

    Thanks

    #1011013

    OK, nm re our Resources mega menu. I fixed that with option #1 for popup maker as explained here:
    https://docs.wppopupmaker.com/article/297-popup-maker-is-overwriting-my-menu-editor-functions-how-can-i-fix-this
    when mega menu check option or check box disappears. Sorry to bother you about that.

    #1011987

    Hi again

    Ok, I fixed the color in Edge I think. The relevant CSS code was

    /* change menu button to white on blue*/
    #menu-item-5955 a span.avia-menu-text{
    background-color:#315b7c !important;
    color:#fff !important;
    }
    this worked in Chrome, not in Edge. button was grey. I changed the #ffff to #ffffff and button in chrome and edge was grey. I changed the hex code to white as in color:white !important; and it works.

    Only issue left now is that the default menu font ,Open Sans, not being used in used in when Free Trial sub-menu switches to burger menu when desktop is small. Somehow becomes serif (looks like Times Roman and wrong size). On Android it is fine.

    Please help with that.

    Thanks

    #1012125

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file to change the font style of the submenu in mobile:

    CSS Snippet:

    
    /* CSS - Submenu fonts in mobile */
    
    @media only screen and (max-width: 767px) {
    .responsive #top .av-menu-mobile-active .av-subnav-menu > li > a > .avia-menu-text {
    	    font-family: 'Open Sans', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif!important;
    }
    }
    
    
    

    I hope you found the code you wanted to remove. It was added to Enfold > General Styling > Quick CSS. You can also add the code to WP Dashboard > Appearance > Editor > Style.css

    NOTE: If you bump your own ticket it get’s pushed to the bottom of the queue and it will take time for the moderators to view it.

    Best regards,
    Vinay

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