Forum Replies Created

Viewing 30 posts - 3,841 through 3,870 (of 34,600 total)
  • Author
    Posts
  • in reply to: Tables behaviour on mobile #1433041

    Hi,
    Sorry, guess I misunderstood.

    Best regards,
    Mike

    in reply to: Dropdown menu accessibility (arrow keys NOT tab) #1433039

    Hi,
    Yes, sorry for the other errors, but you should not have any issues now. Do you see it woking on your test site?

    Best regards,
    Mike

    in reply to: Dropdown menu accessibility (arrow keys NOT tab) #1433037

    Hi,
    Sorry for the confusion, I removed the WPCode snippet and enabled the child theme function again.
    This is the working solution:

    
    function tab_though_menu_skipping_sub_menu_items_unless_down_or_up_arrow_keys_are_used() { ?>
     <script>
    document.addEventListener('DOMContentLoaded', function () {
       const menuItems = document.querySelectorAll('.menu-item-has-children'); // Adjust this selector to match your menu structure
    
       // Initially set tabIndex to -1 for all sub-menu items to skip them in tab navigation
       menuItems.forEach(item => {
           let subMenuItems = item.querySelectorAll('.sub-menu a'); // Adjust this selector for your sub-menus
           subMenuItems.forEach(subMenuItem => {
               subMenuItem.tabIndex = -1;
           });
    
           item.addEventListener('keydown', function (e) {
               // Only proceed if the event target is a menu item that contains a sub-menu
               let subMenu;
               if (e.target.classList.contains('menu-item-has-children')) {
                   subMenu = e.target.querySelector('.sub-menu'); // Adjust this selector for your sub-menus
               } else {
                   // This ensures we get the sub-menu even if a child of the menu item was focused
                   subMenu = e.target.closest('.menu-item-has-children').querySelector('.sub-menu');
               }
    
               let subMenuItems = subMenu.querySelectorAll('a'); // Assumes sub-menu items are anchor tags
               let focusedElement = document.activeElement;
               let currentIndex = Array.from(subMenuItems).indexOf(focusedElement);
    
               switch(e.key) {
                   case 'ArrowDown':
                       // Move focus to the next sub-menu item
                       if (currentIndex < subMenuItems.length - 1) {
                           subMenuItems[currentIndex + 1].tabIndex = 0;
                           subMenuItems[currentIndex + 1].focus();
                           e.preventDefault(); // Prevent scrolling the page
                       } else {
                           // Optionally wrap around to the first item
                           subMenuItems[0].tabIndex = 0;
                           subMenuItems[0].focus();
                           e.preventDefault(); // Prevent scrolling the page
                       }
                       break;
                   case 'ArrowUp':
                       // Move focus to the previous sub-menu item
                       if (currentIndex > 0) {
                           subMenuItems[currentIndex - 1].tabIndex = 0;
                           subMenuItems[currentIndex - 1].focus();
                           e.preventDefault(); // Prevent scrolling the page
                       } else {
                           // Optionally wrap around to the last item
                           subMenuItems[subMenuItems.length - 1].tabIndex = 0;
                           subMenuItems[subMenuItems.length - 1].focus();
                           e.preventDefault(); // Prevent scrolling the page
                       }
                       break;
               }
    
               // Reset tabIndex to -1 for items not focused to ensure they're skipped during tab navigation
               subMenuItems.forEach(subMenuItem => {
                   if (subMenuItem !== document.activeElement) {
                       subMenuItem.tabIndex = -1;
                   }
               });
           });
       });
    });
    </script>
     <?php
    }
    add_action( 'wp_footer', 'tab_though_menu_skipping_sub_menu_items_unless_down_or_up_arrow_keys_are_used', 99 );

    Best regards,
    Mike

    in reply to: Dropdown menu accessibility (arrow keys NOT tab) #1433032

    Hi,
    Thanks, I disabled the function in your child theme and added the javascript to your WPCode plugin and found that the console.log code was causing an error:
    console.log(Pressed key: ${e.key});
    so I disabled it as it was only for testing.
    Now the code works, please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: ENFOLD – Portfolio Grid Option #1433030

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

    in reply to: Login page logo #1433029

    Hey webconceptplusinc,
    Please see the WordPress documentation here: Customizing the Login Form
    But there are plugins that are easy to use, like Custom Login Page Customizer, and many others.

    Best regards,
    Mike

    in reply to: Tables behaviour on mobile #1433027

    Hi,
    If you want the circles to be larger on mobile try changing the height & width from 15px to 30px like this:

    @media only screen and (max-width: 767px) { 
    .color-circle::before {
        content: '';
        display: inline-block;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 2px;
        margin-left: 3px;
        margin-bottom: -1px;
        position: relative;
    }
    }

    Or adjust somewhere in the middle to suit your needs.

    Best regards,
    Mike

    in reply to: Dropdown menu accessibility (arrow keys NOT tab) #1433025

    Hi,
    Thanks for the link to your test site, but the standard login url is not working /wp-admin/ so we can’t examine. Please check.

    Best regards,
    Mike

    in reply to: after changes effects/pictures only appear in preview #1433024

    Hi,
    Glad that this helped, in some cases Autoptimize works ok, if your client is not having trouble then go ahead and use it, but if you notice trouble in the future try disabling Autoptimize first.
    Unless there is anything else we can assist with on this issue, shall we close this thread then?

    Best regards,
    Mike

    in reply to: mega menu & full width map #1433023

    Hi,
    This page is not created the same way, please put the code block with the map inside of a color section and then try this css:

    .responsive #top.page-id-159 #av_section_1 .container {
    	max-width: 100%;
    	padding: 0;
    }
    .responsive #top.page-id-159 #av_section_1 .container main {
    	padding: 0;
    }

    Best regards,
    Mike

    in reply to: Google Map styling overide #1433021

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

    in reply to: Tables behaviour on mobile #1432953

    Hi,
    Glad Ismael could help, when I check it seems like the dots are working on mobile:
    Enfold_Support_4627.jpeg
    peahaps I misunderstand, or you have already solved this?

    Best regards,
    Mike

    in reply to: Tab sections on mobile #1432952

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

    in reply to: Page Builder Issue #1432951

    Hi,
    Thanks for the feedback, but unfortunately we don’t have any inside knowledge about your issue, typically the steps above like database connections & memory solve this.
    It’s odd that your site is giving an exhausted memory size error for your gravityforms plugin, I can only recommend trying to find the cause for your error on the admin-ajax.php

    Best regards,
    Mike

    in reply to: Page Builder Issue #1432945

    Hi,
    Oh, I misunderstood, I thought that you were saying that the plugin was causing the admin-ajax.php 403 (Forbidden) error. Perhaps disabling it along with your other plugins would be a good test. I note in your log above there are a few errors for the gravityforms plugin as it has exhausted the memory size
    It also looks like you downgraded your PHP to v7.3.33, I thought before you were using v7.4?
    Perhaps your plugins require v8, have you tried that?

    Best regards,
    Mike

    in reply to: Measure Enfold Contactform Submissions with GTM #1432944

    Hi,
    The ID result_ajax_response_1 is only in the page DOM after the contact form is submited and won’t be there on the page load.
    Note that this is inside on the ajaxresponse_1 ID, and on page load ajaxresponse_1 is empty.
    I’m not sure what your options are with Page Patch criterium in GTM but perhaps you can also get the page ID so you will know what page it is.
    You could also add a custom field to your pages which could be added to the body classes for better information than the page ID, see this thread for an example.

    Best regards,
    Mike

    in reply to: Page Builder Issue #1432942

    Hi,
    Glad to hear that you have sorted this out, I don’t see anything specific that stands out in the log the you posted.
    What is the name of the custom login plugin that you were using?

    Best regards,
    Mike

    in reply to: can I use classic or gutenberg editor on the enfold theme #1432941

    Hey Phil,
    Thank you for your question, you can use the Classic Editor or the Block Editor, “Gutenberg” in Enfold and not use the Advanced Layout Builder if you wish.
    But you will not be able to use any of the ALB elements or edit the layouts from our demos.

    Best regards,
    Mike

    in reply to: Request to check page editing errors (Avia Layout Builder) #1432928

    Hi,
    We still are not allowed
    Enfold_Support_4624.jpeg

    Best regards,
    Mike

    in reply to: scroll-margin-top & scroll-padding-top css properties #1432926

    Hi,
    For mobile try this slow scroll to anchor with offset function in your child theme functions.php, I tested in on your page by injecting it in the browser and it seemed to work well.

    function slow_scroll_to_anchor_with_offset() { ?>
      <script>
    (function($) {
    	var width = $(window).width();
        if ((width <= 767)) {
      $('a[href*=#]:not([href=#])').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
    && location.hostname == this.hostname) {
    
          var target = $(this.hash);
          target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
          if (target.length) {
            $('html,body').animate({
              scrollTop: target.offset().top - 80 //offset
            }, 1000);
            return false;
          }
        }
      });
      //Executed on page load with URL containing an anchor tag.
      if($(location.href.split("#")[1])) {
          var target = $('#'+location.href.split("#")[1]);
          if (target.length) {
            $('html,body').animate({
              scrollTop: target.offset().top - 80 //offset
            }, 1000);
            return false;
          }
        }
        } else {}
    }(jQuery));
    </script>
      <?php
    }
    add_action( 'wp_footer', 'slow_scroll_to_anchor_with_offset', 99 );

    Best regards,
    Mike

    in reply to: Page Builder Issue #1432925

    Hi,
    If you are still getting the admin-ajax.php 403 (Forbidden) then try the common fixes, and if that doesn’t help then check with your webhost if they can see a cause in your error logs.
    I see now your custom login url is a 404 as well as the standard WP login url, and it makes me think that perhaps this customization is breaking how the backend admin-ajax.php is being called or loaded. Try disabling this customization. Perhaps the key is in what is different with this install and the others that don’t have an issue, are that all on the same server, same plugins and customization, etc. There is probably something small and different that is causing this.

    Best regards,
    Mike

    Hi,
    Glad to hear that you have this sorted out, and thanks for sharing the plugin causing the conflict. If you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

    in reply to: Request to check page editing errors (Avia Layout Builder) #1432922

    Hi,
    Thanks for the login, but unfortunately we get a “forbidden” error so we can not login.
    I see on your page that you have some random “P” tags and “br” between the elements, did you also edit or open the page with a difference editor such as the Block Editor?
    Please note that when you create a page with the Advanced Layout Builder you should not edit it with any other editor.
    So now you could try Enabling the Avia Layout Builder Debugger and try to remove the random “P” tags and “br” between the elements. If you have trouble with this then try to allow us to login to your site, otherwise you may need to create a new page and only use the Advanced Layout Builder to edit it.

    Best regards,
    Mike

    Hi,
    Glad to hear that disabling the plugins has put you on the right path, after you find which one it was please post it here as it may help future users that have this issue.

    Best regards,
    Mike

    Hi,
    I’m not seeing a top margin for the first .flex_column_table, only after the first one. Are you hiding the first one with some custom css? Please link to your page so we can examine, perhaps you have a different issue.
    The latest version is now v5.6.10

    Best regards,
    Mike

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

    in reply to: Page Builder Issue #1432904

    Hi,
    Thank you for your patience and the link to your site, I notice in your WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ Info ▸ Server that your PHP max input variables is set to 4000, please try changing to 10000
    Also try setting your Max input time to 120 and your PHP memory limit to 768M
    Perhaps uping your WordPress Constants WP_MEMORY_LIMIT to 64M and changing your Database Max connections from 300 to 1000 will also help. These are the settings that I see are different between your site and my test site.
    When I checked your homepage I saw the error: admin-ajax.php 403 (Forbidden) this can be caused by many issues, such as if mod_security is enabled on the server, try asking your webhost if it is, and to disable it as a test. It could also be caused by incorrect file permissions or a Corrupt .htaccess file. Please see this article for common fixes.

    Best regards,
    Mike

    Hi,
    Thank you for your patience, since though your tests seem to ruled out the typically header.php & footer.php issue, this seems to be a strange issue that we have not seen before.
    Unfortunately we are not able to login to your site, we get the error Access Denied – Sucuri Website Firewall
    I was able to login via FTP and while this doesn’t directly help us help you, I did notice that you have 140 plugins, I don’t have a way of knowing how many are activate, but I would recommend disabling all plugins and then try enabling one at a time, often the one causing the problems is not showing any errors.
    I see above that you have tried disabling “various plugins” but the best approach will be to disable all of them and then check.
    If this doesn’t help then please create a staging site without the Sucuri Firewall so we can disable everything and try to investigate.
    Most cPanel webhosts have a staging site option, some in the dashboard:
    staging-1.jpeg
    Others add the option in the Softaculous WordPress Management
    2022-12-11_001.jpeg
    There may be other staging site options in different cPanel servers, these are the two that I have seen, try asking your web host if you don’t see these.

    Best regards,
    Mike

    Hey ricedean,
    Thanks for the link to your site, the Recently Viewed Products widget show smaller image typically 36px square and should have a layout like this:
    Enfold_Support_4620.jpeg
    but it looks like you are using some custom css to show the small images larger, so the are blurry:
    Enfold_Support_4622.jpeg
    To correct this try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function larger_recently_viewed_products_widget_images() { ?>
      <script>
    (function($){
    $('.single-product .widget_recently_viewed_products').each(function(){
    $('.product_list_widget img.size-widget').attr('width', '250px');
    $('.product_list_widget img.size-widget').attr('height', '250px');
    $('.product_list_widget img.size-widget').attr('sizes', '(max-width: 450px) 100vw, 450px');
    });
    })(jQuery);
    </script>
      <?php
    }
    add_action( 'wp_footer', 'larger_recently_viewed_products_widget_images', 99 );

    This will change the image size used to a larger image so they won’t be blurry
    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.

    Best regards,
    Mike

    in reply to: Keep 1/2 Columns Perfect Squares #1432899

    Hey MikeTandySwag,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px) { 
    .home #av_section_2 .flex_column.av_one_half {
        padding: 55% 50px 30px 50px;
    }
    }
    @media only screen and (min-width: 768px) and (max-width: 1023px) {
    .home #av_section_2 .flex_column.av_one_half {
        padding: 24% 5px 30px 5px;
    }
    }
    @media only screen and (min-width: 1024px) and (max-width: 1439px) {
    .home #av_section_2 .flex_column.av_one_half {
        padding: 35% 5px 30px 5px;
    }
    }

    The height was affected by the inner padding, this seems to correct in my tests.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

Viewing 30 posts - 3,841 through 3,870 (of 34,600 total)