Viewing 30 posts - 1 through 30 (of 34 total)
  • Author
    Posts
  • #1137640

    Hi I fonud this post:

    https://kriesi.at/support/topic/close-mobile-menu-by-clicking-on-active-navigation-item/?login_error

    But I can see the code is changede now.

    But I cant get the menu to autoclose, both on desktop and mobile.

    Can you help?

    #1137910

    Hey Jonas,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1138385

    Sorry, here a link to the mockup.

    What I would like, is the menu to close after click on the #ancor links – it stays open riight now.

    #1138425

    Hi,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $('body').click(function(){
      $("html").removeClass('av-burger-overlay-active-delayed');
      $('.av-burger-overlay').css({opacity:'0'});
      });
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Best regards,
    Mike

    #1142425

    Thanks a lot,

    is it also possible to get the X returned to the burgermenu icon after click, now everything works, but the X remains “open”

    And in condition make the overlay on the sticky bar transparent and the burgermenu backgrund white?

    Know its a lot to ask.

    #1142948

    Hi,
    Sorry, I was unable to reproduce your error, so please try removing the script and updating the theme and deactivating your plugins.

    Best regards,
    Mike

    #1142997

    Hi I tried to update.

    Try to open the burgermenu and click e.g no. 3 link, its a #ancor.

    When you get scrolled down, the menu close up fine, but the burger icon dosent come, there is just a big X.

    http://mockup3.dk/wp-content/uploads/burgermenu.jpg

    #1143005

    Hi,
    Sorry, I didn’t explain well. I couldn’t reproduce the original issue on my localhost that requires you to need to use the script above. So I can not rewrite the script above while it is still active on your site because I need to be able to test, and since I’m not able to reproduce on my localhost there is a good chance that the script is not needed on your site and the real problem is something else, such as an out of date theme, a bad plugin, some other script, etc.
    Please include admin login in the Private Content area after you update the theme and allow us to deactivate your plugins and scripts so we can be of more assistance.

    Best regards,
    Mike

    #1143006

    Theme is updatet, and I tried to remove the script, it dident help.

    I have disabled all plugins -´= same

    #1143012

    Hi,
    Thank you, I see that the option “Load jQuery in your footer” is missing from the theme options, this is a screenshot of the correct settings:
    2019-09-28-100758
    This is a screenshot of your settings, note the missing options:
    2019-09-28-101329
    this typically means that this setting is already set by a command in the wp-config.php file or by a custom drop-in plugin from your webhost, who sometimes sets this on “WordPress Managed Hosting” plans. Please ask your webhost about correcting this.

    Best regards,
    Mike

    #1143254

    Well if I activate WPRocket, they become visible.

    #1143567

    Hi,
    That is very odd, seems backward. Perhaps this means that there is some code in the wp-config.php file or by a custom drop-in plugin from your webhost, did you get a chance to ask them? Do you have a “WordPress Managed Hosting” plan? Who is your webhost?

    Best regards,
    Mike

    #1144444

    Well, I dont wirly know whats going on at that point, but try to take a look at the clients site, where the issue dont exist.
    Its the same with the X after clicking on a #ancor in the burger menu.

    #1144885

    Hi,
    Sorry, your client site is not loading for me, but we should continue with your mockup site instead of starting again with a new site.
    I’m sorry to keep suggesting to ask your webhost, but I have seen this before… some “WordPress Managed Hosting” webhosts force the “jQuery in load in the footer” thinking that the site will load faster, they do this with different code snippets and they are the best source to remove this. If they refuse to correct this or to tell you how to correct this then it could be done at the “Root” level which means we can’t touch it.
    Please answer:
    Do you have a “WordPress Managed Hosting” plan?
    are they forcing “jQuery in load in the footer”?
    Who is your webhost?

    Best regards,
    Mike

    #1144925

    The link was more to show, that it dosent have anything to do with the host.

    Its on shared @ Unoeuro.com

    They dont ad anything. (I work a lot with speed optimization, so I would find it)

    Both domains are on the same host.

    And the problem is the same – with or witout WProcket enabled.

    Hope it gives some ideas – its quite wired, you dont get the X

    #1145182

    Hi,
    OK, if they are both on the same server that would make sense to view it, but can we see if the option “Load jQuery in your footer” is missing from the theme options also?
    I checked again and the site frontend is not loading for me. Is the site blocking any countries?
    Thank you.

    Best regards,
    Mike

    #1146887

    Loads fine here?

    #1147595

    Hi,
    I found that if I try to load your site without the “www” in your url it will not load, but adding the “www” loads the site, which is fine for me but since you posted the url both ways it explains why sometimes I thought your site was down.
    Anyways, I tried to login again to investigate further but I couldn’t, please check.

    Best regards,
    Mike

    #1149495

    Hi Mike,

    sorry for the long waittime.

    I made the same user for you.

    Thanks for heads-up on redirect.

    #1149638

    Hi,
    I adjusted the function to this and it is working correctly now, please clear your browser cache and check.

    function custom_script(){
      ?>
      <script>
    (function($){
      $("li.current_page_item > a").click(function(){
        $('.av-hamburger').removeClass('is-active');
        $('html').removeClass('av-burger-overlay-active');
        $('html').removeClass('av-burger-overlay-active-delayed');
        $('.av-burger-overlay').css({ 'display' : 'none', 'opacity' : 0 });
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Best regards,
    Mike

    #1149785

    Great Thanks!

    after updating, the CSS to make the top menubar sticky dosent work, do you have an idea to fix it?

    I use:

    @media only screen and (max-width:767px) {
    .responsive #top #wrap_all #header {
    position: fixed !important;
    }
    }

    #1150126

    Hi,
    I checked and it is working for me, while your header is sticky. Please clear your browser cache and check.

    Best regards,
    Mike

    #1150132

    Okay,

    is it possible to complete remove the white overlay on the sticky bar?

    #1150459

    Hi,
    To remove the white background from the header on scroll, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .header_color .header_bg, .header_color .main_menu ul ul, .header_color .main_menu .menu ul li a, .header_color .pointer_arrow_wrap .pointer_arrow, .header_color .avia_mega_div, .header_color .av-subnav-menu > li ul, .header_color .av-subnav-menu a {
      background-color:transparent !important;
      }
      .header_color.av_header_transparency .header_bg, .header_color.av_header_transparency .main_menu ul ul, .header_color.av_header_transparency .main_menu .menu ul li a, .header_color.av_header_transparency .pointer_arrow_wrap .pointer_arrow, .header_color.av_header_transparency .avia_mega_div, .header_color.av_header_transparency .av-subnav-menu > li ul, .header_color.av_header_transparency .av-subnav-menu a {
      background-color:transparent !important;
      border-color: transparent !important; 
      }
      #top .header_color #header_meta.container_wrap_meta {
          background: transparent !important; 
      border-bottom-width: 0 !important; 
      }
      #top #header_main {
          border-bottom-width: 0 !important; 
      }
      #top .av_header_transparency #header_meta {
          border-bottom: 0 !important; 
      }
      #top #header_main.container_wrap {
      border-top-width: 0 !important; 
      }

    but the burger menu icon still changes to black on scroll, to prevent this, try this css:

        .html_av-overlay-side-classic #top .av-burger-overlay li li .avia-bullet, .html_av-overlay-side #top .av-hamburger-inner, .html_av-overlay-side #top .av-hamburger-inner::before, .html_av-overlay-side #top .av-hamburger-inner::after {
      background-color: #fff !important; 
      }
    

    Best regards,
    Mike

    #1150520

    Great, it works well on mobile, but not on desktop.

    The Idea was to remove the overlay, and set a color behind the burger icon (White) so we can keep the same color both n scroll and in the top.

    Both on desktop and mobile.

    .

    #1150890

    Hi,
    Thanks for the feedback, but it seems your site is down right now, I tried with “www” and not, Please see the screenshot in Private Content area.

    Best regards,
    Mike

    #1151149

    Sorry, its online again.

    They forgot to renew;-)

    #1151586

    Hi,
    Is this what you had in mind:
    2019-10-27-115051
    it doesn’t seem to match the transparent header, where the icon is white and a transparent background, and the after scroll where the icon is black and the background is white, since a lot of your page after scroll is white the icon doesn’t show well, if the icon is the same white as before scroll, it won’t be seen.
    The current full width white header would stand out better but with no logo it looks odd, I guess I’m not understanding very well.

    Best regards,
    Mike

    #1151688

    Yep, a kind of special, but thats what they ask for.

    #1152319

    Hi,
    Sorry for the late reply, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .header_color .header_bg, .header_color .main_menu ul ul, .header_color .main_menu .menu ul li a, .header_color .pointer_arrow_wrap .pointer_arrow, .header_color .avia_mega_div, .header_color .av-subnav-menu > li ul, .header_color .av-subnav-menu a {
      background-color:transparent !important;
      }
      .header_color.av_header_transparency .header_bg, .header_color.av_header_transparency .main_menu ul ul, .header_color.av_header_transparency .main_menu .menu ul li a, .header_color.av_header_transparency .pointer_arrow_wrap .pointer_arrow, .header_color.av_header_transparency .avia_mega_div, .header_color.av_header_transparency .av-subnav-menu > li ul, .header_color.av_header_transparency .av-subnav-menu a {
      background-color:transparent !important;
      border-color: transparent !important; 
      }
      #top .header_color #header_meta.container_wrap_meta {
          background: transparent !important; 
      border-bottom-width: 0 !important; 
      }
      #top #header_main {
          border-bottom-width: 0 !important; 
      }
      #top .av_header_transparency #header_meta {
          border-bottom: 0 !important; 
      }
      #top #header_main.container_wrap {
      border-top-width: 0 !important; 
      }
     #header:not(.av_header_transparency) .av-hamburger {
      	    background-color: #fff;
      }
    

    After applying the css, Please clear your browser cache and check.

    Best regards,
    Mike

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