Forum Replies Created

Viewing 30 posts - 11,131 through 11,160 (of 35,062 total)
  • Author
    Posts
  • Hi,
    Glad to hear that this helped, Ismael’s solution is a PHP function and works on the server side while the page is being built, but getting the browser screen size needs to be done on the client side with javascript after the page is built, so this won’t work.
    I can add a function to account for screen resizing, but it just auto reloads the page on resize and in a live situation the user would not trigger this because their devices would not change from desktop to tablet on the fly. Originally I thought you asked for the product tabs below the product image and make it fullwidth, in your last post you asked to have the title, price, add to cart button and description below the image, just like on the mobile version, so for this I have also added the resize function.
    Try this code to the end of your child theme functions.php file in WordPress ▸ Appearance ▸ Theme File Editor instead:

    function move_woo_product_summary_below_image_with_resize() { ?>
        <script>
    window.addEventListener('DOMContentLoaded', function() {
        (function ($) { 
            var width = $(window).width();
        if (width > 767 && width < 1200) {
          $('#top.single-product .woocommerce-tabs.wc-tabs-wrapper').css({'padding-top':'0'}).appendTo( ".container_wrap_first.template-shop > .container > .product" );
          $('#top.single-product .single-product-summary .entry-summary').css({'padding-top':'0'}).insertBefore( ".container_wrap_first.template-shop > .container > .product .woocommerce-tabs.wc-tabs-wrapper" );
          $('#top.single-product .single-product-main-image').css({'padding-bottom':'0','width':'100%'});
           }
        })(jQuery);
        var resizeId;
        window.addEventListener('resize', function() {
            clearTimeout(resizeId);
            resizeId = setTimeout(doneResizing, 300);
        });
        
        function doneResizing(){
            location.reload();
        }
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'move_woo_product_summary_below_image_with_resize');

    Below I have linked to my test page, I tested with a Dev Tools device emulation of a device 1024px by 1205px to test the resize by rotating portrait to landscape and back.
    For portrait:
    2022-08-15_001.jpg
    For landscape:
    2022-08-15_002.jpg
    Please give this a try.

    Best regards,
    Mike

    in reply to: Image position in mobile view #1361693

    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: Using ALB to customize author archive page? #1361677

    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: Using ALB to customize author archive page? #1361674

    Hey adapt,
    Thanks for your question, but unfortunately it can not be edited with the ALB, you would need to edit the template file author.php or redirect the page to a new page you create with the ALB. There are a few plugins you can use to redirect with.

    Best regards,
    Mike

    in reply to: Form submissions to coming through to recipients #1361673

    Hi,
    Thanks for the login, I have tested your contact form by cloning the element and replacing your email address with mine, and I found the form is sending the contact email and the autoresponder email correctly.
    I do note that your email is marked as spam because it’s sent from a different domain, it looks like your webhost domain.
    X-Spam-Score: 90
    So you are probably also getting the emails in your spam folder, or some mail servers auto delete high scoring spam.
    To correct this you should set up SMTP mail on your site domain and use the plugin WP Mail SMTP or Easy WP SMTP so your WordPress sends mail though your domain’s SMTP and not phpmail.
    Then your mail should not be marked as spam. I know you said it used to work, but it’s possible that your webhost has too many email abusers and had been marked as a spam domain.

    Best regards,
    Mike

    in reply to: WP Layer slider – layer alignment / positioning changes #1361670

    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

    Hey Beth,
    Thanks for your patience and the link to your site, I’m not familiar with this plugin, but I took a look at your page through Appearance > Customize > Woocomerce > Mix and Match Products.
    You wrote that you cannot set the grid to any number of columns except 3, but I see that current columns are set to 5, I also tested changing them in the Customizer to 6 with no problems. You seemed to really want the list layout, so I tried this and it does work, but the css was a little off, so I added this css to your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .mnm_form.layout_tabular .products .product {
        display: table;
        width: 100%;
    }
    .mnm_form.layout_tabular thead,.mnm_form.layout_tabular tbody {
    	display: table;	
    	width: 100%;
    }
    .mnm_form.layout_tabular thead th.product-name {
    	text-align: center;
    }
    #top.single-product #main .sidebar_sidebar_right {
    	display: none;
    }

    please clear your browser cache and check, below I included a screenshot.

    Best regards,
    Mike

    Hey Tilman,
    Thanks for the link to your site, when I checked your site with Windows Chrome for desktop and tablet (768px) I saw the logo was not in the center of the moon in the background image
    see screenshot 1 below
    so I checked for layerslider, but it was also not centered
    see screenshot 2 below
    so I centered it in the layerslider
    see screenshot 3 below
    and now on the homepage it is also centered
    see screenshot 4 below
    please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Form submissions to coming through to recipients #1361663

    Hi,
    Please include an admin login in the Private Content area so we can investigate and be of more assistance.

    Best regards,
    Mike

    in reply to: Enfold 5.1.1 anchor links & code issues with parallax #1361662

    Hey blaircomm1,
    Thanks for your patience and the link to your site, I see that your pages are getting an error in the console jquery.min.js?ver=3.6.0:2 Uncaught TypeError: e.indexOf is not a function it seems that is related to a script named AddThis? It’s hard to tell for sure but javascript errors can cascade and cause other issues, so try to disable this.
    I tested all 9 of your top masonry elements that opened an iframe, and each one of the scroll down arrows worked correctly, on desktop Windows with Chrome, Firefox, & Edge.
    All of the first arrows should go to the reddish text box, and the following arrows go to the next sections, the animation also works.
    While testing I found that when the iframe opens I see this error: GET https://i.liadm.com/s/29307?bidder_id=79701&bidder_uuid={{naid}} 400 (Bad Request) and Failed to load resource: the server responded with a status of 502 () for https://cms.analytics.yahoo.com/cms?partner_id=ADDIS I assume that these are related to scripts in your iframe pages, so you will need to correct these.
    If you have added scripts in your iframe pages, there is a good chance that they are also running in the backend when you try to edit the pages, thus causing your “spacebar” error, try seeing if you make a duplicate page without any scripts in the page if you still get this error.
    But as for the main issue of anchor links not working correctly in the iframes, I was not able to see this error.

    Best regards,
    Mike

    in reply to: Change background color on Testimonials element #1361661

    Hi,
    Glad to hear that you have this sorted out, and we will note your suggestion. 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

    Hey outtagear,
    Thank you for your patience, unfortunately, I have not heard about these plugins before and I don’t know how you are connecting them to the product reviews element, I imagine that you have customized the theme to do this, when I check your child theme I see a lot of custom files, so I not sure where to start.
    I see that your example product page had two errors, one is: Uncaught ReferenceError: EF is not defined referring to this script:

    EF.click({
        offer_id: EF.urlParameter('oid'),
        affiliate_id: EF.urlParameter('affid'),
        sub1: EF.urlParameter('sub1'),
        sub2: EF.urlParameter('sub2'),
        sub3: EF.urlParameter('sub3'),
        sub4: EF.urlParameter('sub4'),
        sub5: EF.urlParameter('sub5'),
        uid: EF.urlParameter('uid'),
        source_id: EF.urlParameter('source_id'),
        transaction_id: EF.urlParameter('_ef_transaction_id'),
    });

    perhaps you know where it is and can adjust it.
    The second error is Uncaught TypeError: Cannot read properties of undefined (reading 'left') and it refers to a custom script in your child theme /wp-content/themes/enfold-child/js/script.js
    Typically these kinds of errors are related to javascript being deferred, and I see your WP Rocket is doing this and you have disabled jQuery Migrate in the theme options. But when I tested changing these options it didn’t correct the errors, so I put everything back to the way it was.
    Often a javascript error can cause other issues, so try fixing these two errors and perhaps your plugin will then work correctly, if not try disabling your plugins one at a time to see if there is a conflict with the Judge.me plugin.

    Best regards,
    Mike

    in reply to: No background video on Iphone/Ipad #1361656

    Hi,
    Thank you for your patience, unfortunately mobile background videos will not typically play on mobile devices, Safari & Chrome have set the standard a few years back that mobile video must be clicked by the user to play, this was to try to curb “video spamming” by websites. As with any standard there are “hacks” around this but with each update Safari & Chrome block more methods. We follow the rules, you can probably find a WordPress plugin that will if you really want to do this. The last time I checked the layerslider was still playing background videos on mobile, but there is no telling how long this will be for. I would recommend not trying to bypass this because you will constantly need to watch your site for this breaking.

    Best regards,
    Mike

    in reply to: widget spacing left and right smaller #1361653

    Hi,
    Glad Nikko was 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: hide menu top on desktop #1361651

    Hi,
    Glad Nikko was 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: Remove gray frames top and bottom #1361649

    Hi,
    Glad Nikko was 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

    Hi,
    Thanks for your patience, please try this code to the end of your child theme functions.php file in WordPress ▸ Appearance ▸ Theme File Editor instead:

    function custom_script_move_woo_tabs() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function ($) { 
        var width = $(window).width();
    if (width > 767 && width < 1200) {
    	$('#top.single-product .woocommerce-tabs.wc-tabs-wrapper').css({'padding-top':'0'}).appendTo( ".container_wrap_first.template-shop > .container > .product" );
    	$('#top.single-product .single-product-main-image').css({'padding-bottom':'0'});
       }
    })(jQuery); 
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_script_move_woo_tabs');

    this only works on screens between 767px and 1200px as asked, please copy the css from the forum and not from an email notification so the greater than symbol is copied correctly.
    Also note that if you test on a desktop screen by resizing the window you will need to refresh the widow to trigger the script, this would not be an issue for an actual user.
    Here is the expected results between 767px and 1200px with the tabs moved:
    single-product-with-woo-tabs-moved-below-product-image-full-width.jpg
    this is when the screen is larger than 1200px:
    single-product-with-woo-tabs-in-default-location.jpg
    I have linked to my test page below, please give this a try.

    Best regards,
    Mike

    in reply to: Second image slider – Product page #1361638

    Hi,
    Thank you for your patience and the screenshot, the easiest way that I can think of to add a slider below the single product and above the related products and add this slider in the editor for the specific product is to use the Shortcode Wand to add the Easy Slider, I suggest the Easy Slider element because I believe that you are adding additional images for the current product, and I suggest using the Shortcode Wand so the product uses the woocommerce layout instead of converting it to a manual Advanced Layout Builder layout. Once we add the slider we will add a script in your child theme functions.php to place it between the product and the related products, please try these steps.
    In the backend for a product add an Easy Slider using the Shortcode Wand:
    shortcode-wand-easy-slider.jpg
    after you have added your images, captions, and options, go to the advanced tab and add the custom class additional-slider:
    add-custom-class-to-easy-slider.jpg
    once saved you will see the shortcode below your product description, then save the page:
    slider-shortcode-in-product-editor.jpg
    this is the placement for the Easy Slider before adding the script in your child theme functions.php:
    product-page-with-easy-slider-before-script.jpg
    Now add this code to the end of your child theme functions.php file in WordPress ▸ Appearance ▸ Theme File Editor, please note that when you copy the code do so from the forum, not an email as the greater than symbols may paste incorrectly:

    function custom_script_single_product_additional_slider() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
      $('#top.single-product .additional-slider').insertAfter( ".container_wrap_first.template-shop > .container" );
    })(jQuery);
    });
     </script>
      <?php
    }
    add_action('wp_footer', 'custom_script_single_product_additional_slider');

    This is the final placement of the Easy Slider on single product page with the script:
    placement-of-easy-slider-on-single-product-page.jpg
    I have linked to my test page below for your review, please give this a try.

    Best regards,
    Mike

    in reply to: Link to Masonry Terms? #1361629

    Hi,
    Thank you for your patience, please try this script in your child theme functions.php instead,

    function custom_masonry_hash_sort_trigger_script() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($) {
    function sortHash() {
    if (location.href.indexOf("#") != -1) {
            var target = window.location.hash.substring(1);
            setTimeout(function(){
            $(".av-masonry-sort .av-sort-by-term").find('a[data-filter="'+ target +'"]').trigger("click");
            },200);
        }
    }
    sortHash();
    window.addEventListener('popstate', function(event){
    	sortHash();
    });
    }(jQuery));
    });
      </script>
      <?php
    }
    add_action('wp_footer', 'custom_masonry_hash_sort_trigger_script');

    This script checks for a hash in the url on page load and if it is found in the masonry sort it triggers a click, it also listens for a hash in the url after the page is loaded so if a link or a button on the same page is clicked it will trigger the script.
    I have linked to my test page below with the hash #photography_sort
    2022-08-13_016.jpg
    On my test page I only have 3 sort options:
    design_sort
    illustration_sort
    photography_sort
    this should help you find the correct data-filter hash on your page.

    Best regards,
    Mike

    in reply to: Imported posts and the grid layout theme look has changed. #1361626

    Hi,
    Thanks for your patience, to correct all 700 posts I would use the Better Search Replace plugin, and search only tables for posts and make two search and replace runs, the first one would be:
    [embed] ▸ [audio mp3="
    2022-08-13_014.jpg
    and the second run would be:
    [/embed] ▸ " preload="auto"][/audio]
    2022-08-13_015.jpg
    I tested this on my demo site with one post having your embed code and it worked for me.
    But for your situation, I would only do this if you are not using [embed] for anything else, such as videos, and you have a backup of the posts or the original import file to revert the changes. Please be very careful with the the Better Search Replace plugin, it’s no joke! and there is no undo!
    Another option if you are using [embed] for videos, I would export your posts using the WordPress ▸ Tools ▸ Export ▸ posts option and edit it with VS Code or a similar text editor, here is the online version
    Then remove all of the posts except for the audio ones, manually, then do the same search and replace as above, and then remove your audio posts from your site and use your modified import file to add them again. This would be a bit more work but still easier than editing 700 posts.

    Best regards,
    Mike

    in reply to: Contact form autoresponder markup broken #1361625

    Hey Jeannette,
    Thanks for your patience, please try adding your autoresponder text with no manual [Enter] key line breaks, instead use \n like this:

    Guten Tag \n\nVielen Dank für Ihre Nachricht. \nGerne werden wir Sie in den nächsten Tagen persönlich kontaktieren. \n\nFreundliche Grüsse \n\nxyz

    2022-08-13_012.jpg
    I tested this and the result was as you had requested, this is the raw html from the email:

    Guten Tag <br />
    <br />
    Vielen Dank für Ihre Nachricht. <br />
    Gerne werden wir Sie in den nächsten Tagen persönlich kontaktieren. <br />
    <br />
    Freundliche Grüsse <br />
    <br />
    xyz

    which looks like this:
    2022-08-13_013.jpg

    Best regards,
    Mike

    Hi,
    Thank you for your patience, to have a transparent header for your single tribe events pages like your other pages, please try this css in your Quick CSS or your child theme stylesheet:

    @media only screen and (min-width: 990px) { 
    #top.single-tribe_events .header_color .header_bg {
    	background-color: transparent;
    }
    #top.single-tribe_events .header-scrolled-full.header_color .header_bg {
    	background-color: #fff;
    }
    .html_header_top.html_header_sticky.html_large #top.single-tribe_events #main {
        padding-top: 0;
    }
    
    #top.single-tribe_events #main > .container_wrap_first {
    	padding-top: 116px;
    }
    }

    Please copy the css from the forum and not from an email notification so the greater than symbol is copied correctly. After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Image position in mobile view #1361604

    Hi,
    Thank you for your patience and the login to your site, so for the page linked below where you added the custom class roundbutton, I don’t find any css in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field or in your child theme ▸ style.css.
    It looks like you mostly add your custom css to the WordPress ▸ Customize ▸ Additional CSS field, which is good, but I don’t find the customization that Ismael recommended anywhere, so I assume that you have removed it. I see that instead of using custom css you are using the element Advanced ▸ Position ▸ Image Position, which is good.
    2022-08-13_001.jpg
    but please note that this was for the desktop resolution only, for the other sizes the position is using the same desktop position:
    2022-08-13_002.jpg
    so you will want to set each resolution size position option, for example for small screens (between 480px and 767px – eg: Tablet Portrait) I set it to top -40 & left -40
    2022-08-13_003.jpg
    and now the position is better:
    2022-08-13_004.jpg
    for the smallest screens you have the element hidden, so there is no need to set the position:
    2022-08-13_005.jpg
    and for medium sized screens (between 768px and 989px – eg: Tablet Landscape) the current desktop position seems to work fine, so there is no need to set the position:
    2022-08-13_006.jpg
    please clear your browser cache and check this page and if you find it working now please adjust your other pages accordingly.

    Best regards,
    Mike

    in reply to: Link to specific section #1361545

    Hi,
    I believe that you are asking how to change the text of the menu items for each language, typically this is done with a language plugin, are you using one?
    I see that for your other languages you only have the “home” and language links? Do you plan to use a language plugin?

    Best regards,
    Mike

    in reply to: Toggle not show all the content #1361542

    Hi,
    Thanks for your patience, but your video and test page is not available, I see your live page doesn’t seem to have this error.
    I tried creating a test page on my demo site with the toggles opening one at a time, but don’t see the error, please check the link below.

    Best regards,
    Mike

    in reply to: Link to specific section #1361536

    Hi,
    Glad to hear this helped, but I don’t understand what you mean by “idiom” please explain further.

    Best regards,
    Mike

    in reply to: Link to specific section #1361455

    Hey Antonio,
    Thanks for your question, the issue is that you have two sections with the same ID “contacto” the top one is hidden on mobile so the link can’t complete the anchor jump.
    This is expected, the HTML rules are that each ID on a page should be unique. On desktop the first “contacto” is visible so the link works.
    The recommend solution is to use different ID’s for mobile and desktop and then create two menus with the correct anchor link for the menu item “contacto” and then in Enfold Theme Options ▸ Main Menu ▸ General ▸ Alternate Menu For Mobile choose the mobile menu.

    Best regards,
    Mike

    in reply to: Accessibility for Visually Impaired #1361393

    Hi,
    Thanks for the feedback, we will leave this open to hear back from you.

    Best regards,
    Mike

    in reply to: Close Button #1361392

    Hi,
    Thank you for the link to your test page, please try this script to add a close button inside the toggle content, add this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_close_button_script() { ?>
      <script>
    (function($){
    	var close = $('<span class="close_button"></span>');
    $('.single_toggle .toggle_content').prepend(close);
    $('.close_button').click(function() {
          $(this).parents('.toggle_wrap.active_tc').removeClass('active_tc');
      });
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_close_button_script');

    and then this css:

    .close_button {
        position:relative;
        float:right;
        display:block;
        height:50px;
        width:50px;
        background: url(https://img.icons8.com/ios/50/000000/cancel.png) no-repeat;
        background-color:#fff;
        border-radius:25px;
        -moz-border-radius:25px;
        -webkit-border-radius:25px;
    }
    .close_button:hover {
    	cursor: pointer;
    }
    

    this is the expected results:
    2022-08-10_001.jpg

    As for your video, it is not auto playing for me, but does play on click. I tested in Windows with Chrome, Firefox, & Edge.

    Best regards,
    Mike

    in reply to: Accessibility for Visually Impaired #1361344

    Hi,
    Thanks for the feedback, the link seems to be a paid service not a tool. I see that your main menu links now have the title, aria-label, and anchor text, and JAWs is suppose to read each of these, so I’m not sure why yours is not. Perhaps there is a setting disabled on your JAWs, such as disabled javascript? Or it’s reading the page before it’s fully loaded.
    These are guesses, but in the past I have helped other users of JAWs with other elements and they didn’t say they couldn’t use JAWs on the main menu. But unfortunately there doesn’t seem to ba a trial version of JAWs for us to test with, so we can’t test.
    There are other accessibility plugins but I don’t have any experience with these and don’t know which one may help, I assume each of these would do the same as we have by adding the title, aria-label, and anchor text to the main menu links, if you test any of these plugins please remove the 3 scripts that we have posted above so there won’t be any conflicts.

    Best regards,
    Mike

Viewing 30 posts - 11,131 through 11,160 (of 35,062 total)