Forum Replies Created

Viewing 30 posts - 91 through 120 (of 150 total)
  • Author
    Posts
  • in reply to: entypo-fontello and custom fonts add font-display #1225194

    Hi Victoria,

    Thanks, I will wait for their answer.

    Kind regards,
    Rob

    in reply to: Advice on accessibility for masonry grid images #1225160

    Hi Mike,

    Thank you for your patience in working through this, I understand it’s not always easy to assess all different layout setups people can have with Enfold and all the modifications they apply :-)

    Your new CSS to hide the title from showing over the masonry image works perfectly, so that is good workaround for me for now. I just need to set all masonry galleries to “always show title” and then hide them through CSS, then the “empty link text” WAVE error doesn’t appear anymore. So thanks for that, one issue tackled.

    Still, since this is a bit convoluted as a procedure (set to show Titles and then hide them anyway), could I ask you to submit a fix request/feature request for the things we encountered during these tests? I noticed that particpants cannot do that themselves anymore. So could you please forward this as a feature/fix request? Thanks!

    Re: Masonry Gallery perfect grid
    1)
    Link text should not be affected by the option Display Neither, which is now the case. If I choose that option in the Masonry Settings, WAVE errors about empty link text appear. Ideally link text should be something like “Open <image-number-in-gallery> in lightbox”, regardless of other options set.
    2)
    Duplicate links in the Galleries overview page (grid masonry category) (on image and Title) should be solved by uniting them in a container and then setting one link on the container. That way the links are independent of other options chosen.
    3)
    Some improvements could be made to the interface of the masonry gallery:
    – the gallery styling gives the possibility to display:
    – Display Title and Excerpt
    – Display Excerpt
    but: >>> Excerpt is actually the image Caption — please change that for clarity
    – under “Element Title and “Excerpt”(= Caption) display settings”:
    – the explanation description is not correct, should be something like
    “You can choose whether to always display, display only on hover, or hide on hover”

    Thanks for the good workaround for the “empty link text” error, I would not have found that all by myself.
    BTW, I use the WAVE extension too (in Chrome and in Firefox).

    Thanks for all the help,
    Rob

    • This reply was modified 4 years, 5 months ago by rob2701. Reason: typo correction
    in reply to: Grid row tablet strangeness #1224945

    I fixed it like this for now:

    /* Fix last section/element on 4col grid row page too small on tablet */
    @media only screen and (max-width:1024px) and (min-width:768px) {
      #top.page-id-620 .av-layout-grid-container .av_one_fourth {
        width: 46%;
        margin: 2% 2%;
        display: block;
        float: left;
      }
      div.flex_column_div:nth-child(5),
      div.flex_column_div:nth-child(6),
      div.flex_column_div:nth-child(9) {
          margin-top: 2% !important;
      }
      div.flex_column_div:nth-child(2n) {
      margin-right: 2% !important;
      }
    }

    If there is a better way, please share.
    You may want to incorporate some kind of fix for this in the next version of the theme.

    Kind regards,
    Rob

    By the way, there is a similar strangeness in the 5col grid, so please look at that as well. :-)

    Added comment 2020-06-24:
    Just discovered that this suddenly also applies to subpages of that page, even though I target just the parent…Why? How to fix?

    • This reply was modified 4 years, 5 months ago by rob2701. Reason: Added comment about CSS suddenly also applying to subpages
    in reply to: Advice on accessibility for masonry grid images #1224889

    Hi Mike,

    Indeed on the 3column perfect grid portfolio on the demo there are no empty link errors.

    I have just done a little testing, and the difference is in the Captions Display settings in the masonry gallery.
    When I set Captions to “Display Title/Bottom/AlwaysDisplay” (like in the demo) I don’t get any empty link text errors either.
    I have done this on the first gallery on the dev site, check it out there.
    Problem is: I do NOT want the Titles displaying below the thumbs (as they are simply the filenames).
    So the issue remains…

    And what about the second issue I mentioned on the galleries overview page (duplicate links on the Galleries overview page which links to all individual masonry galleries, where both the featured image and the title of the gallery point to the same URL)?

    Regards,
    Rob

    Added info:
    I can’t hide the titles when set to display through CSS either, because the space remains even if they don’t show:

    /* hide image titles in masonry galleries - even if set to display */
    h3.av-masonry-entry-title {
    display: none;
    }

    In an “ideal” world, the link text would go something like “Open image <insert-image-number> in lightbox”
    Just my 2 cents :-)

    • This reply was modified 4 years, 5 months ago by rob2701. Reason: added my 2 cents for image link text
    in reply to: Advice on accessibility for masonry grid images #1224605

    Hi Mike,

    I tried out the script you gave me instead of the one I had, and it does not make a difference. I had already tried to remove that entire code from the functions.php (like I mentioned earlier above) to find out if that was the culprit, but it did not resolve the issue. Like you said, with the “hide filename on hover” scripts removed the image titles are nicely visible in the code (without the script), as below:

    <a href="http://site.com/wp-content/uploads/impressions-01-2133x1600-q10.jpg" id="av-masonry-1-item-7105" data-av-masonry-item="7105" class="av-masonry-entry isotope-item post-7105 attachment type-attachment status-inherit hentry av-masonry-item-with-image lightbox-added av-masonry-item-loaded" title="impressions-01-2133×1600-q10" itemprop="thumbnailUrl" style="position: absolute; left: 0%; top: 0px;"><div class="av-inner-masonry-sizer"><figure class="av-inner-masonry main_color"><div class="av-masonry-outerimage-container"><div class="av-masonry-image-container" style="background-image: url(https://site.com/wp-content/uploads/impressions-01-2133x1600-q10.jpg);" title="impressions-01-2133×1600-q10"></div></figure></a>
    <!-- end av-masonry entry-->

    With my script or with your script to remove the tooltips on hover present the image title does not show in the code.

    But it looks like we are talking about two different things here. The image Title is not the problem, it is the link itself which has no text, so the part just before the closing :
    <a href="blablabla" ... </div></figure>---<THERE IS NO LINK TEXT HERE>---</a>

    So how can we solve that?

    As for the second issue of duplicate links (on the Galleries overview page which links to all individual masonry galleries, where both the featured image and the title of the gallery point to the same URL):

    Is there a way to either unite both links (featured-image and title) inside a div or something and put the link on that, or if that cannot be done to effectively hide the title links programmatically? Thanks for your help.

    Regards,
    Rob

    • This reply was modified 4 years, 5 months ago by rob2701. Reason: corrected typos
    in reply to: Advice on accessibility for masonry grid images #1224482

    Hi Mike,

    Thanks for looking into this. Yes, that is the exact error from the WAVE tool: “Empty Link: A link contains no text” on the masonry gallery image links (the thumbnails with links to the lightbox).

    What you suggest is actually what I already have: each image automatically has the filaneme as title.
    Yet in my setup the accessibility compliance test still shows empty link. So there must be something else different in my setup than in your testing environment.

    What’s different in my setup is that I have in my functions.php code to hide the tooltip on the images on hover:

    // Hide image filename (alt text) displaying on hover
    // NOTE: this ALSO removes the ability to use TITLES (="captions") in the lightbox galleries!
    // Added query to also remove title on hover in portfolio galleries
    function remove_title_attr(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('#wrap_all a').removeAttr('title');
    jQuery('#wrap_all img').removeAttr('title');
    jQuery('.av-masonry-image-container').removeAttr('title');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'remove_title_attr');

    I thought that may have been interfering, but removing it makes no difference.
    The empty link error only disappears when I set the masonry gallery images to “Display Title”, but that is not how I want it: I like the clean image only look. Plus, I use the image filename as the title (and there is no way I am going to manually enter different titles in the media library manually for all since I don’t use them anyway), resulting in a “Redundant title text” error. So that’s two reasons why I cannot use that.

    Can you take a look? Details in private field.

    Related issue is (on the Galleries overview page which links to all individual masonry galleries) both the featured image and the title of the gallery are a link, resulting in the accessibility alert “redundant links: adjacent links go to the same URL”.
    You can see this on the “Impressions” Portfolio grid.

    Is there a way to either unite both links (featured image and title) or if that cannot be done to effectively hide the title links programmatically?

    Thanks for your help and time,
    Rob

    in reply to: Wrong portfolio category displaying in breadcrumbs #1224449

    Hi Mike,

    Absolutely brilliant! You have lifted a long time spine from my foot with this solution :-)
    I just tested it and it works perfectly, just as you described.

    I am a bit ashamed though, I thought I knew most all Enfold settings, yet I had always missed the Breadcrumbs Hierarchy one, for the simple and stupid reason that I had not checkmarked it in the Screen Options. :-(
    So thank you for enlightening me on that, guess I still learn something new every day. Brilliant work by the team by the way, being able to set that breadcrumb hierarchy solves a whole lot of issues for many people.
    So I publicly apologize for my earlier criticisms, as this was already solved (and brilliantly so), I just had never seen it.

    After going back to the nomal menu items (non-custom links) I have fixed the menu highlighting by just entering the new menu IDs in the Quick CSS.

    Again, thank you for your precious time and excellent help, much appreciated! And for pointing me to the Breadcrumbs Hierarchy solution. Issue is solved perfectly, so please close this whenever you want.

    Cheers and thanks,
    Rob

    in reply to: Wrong portfolio category displaying in breadcrumbs #1224386

    Hi Mike,

    No worries, I know you guys have a lot on your plate. Thanks for taking the time to look into this.

    You write: “If you want a constant breadcrumb (which does not use sessions to “guess” the right parent page based on previously visited pages) you need to select the breadcrumb parent manually.” How can I select the breadcrumb parent manually? I cannot find an option for that.

    The pages don’t have a parent page. They are independent portfolio categories. Not nested anywhere, no parent. So they can’t have a parent set even if I wanted to, simply because they don’t have one.

    Test with Home temporarily set as parent / custom menu links for Portfolio Cats
    If I select for example Home as the parent page (just for testing purposes) and then use custom links to replace the normal menu entries (both portfolio categories top level links in the menu), that just results in breadcrumbs like this:
    Opening CAT2-item from CAT2 Menu link: Home/Home/CAT2/CAT2-item
    Opening CAT2-item from button in CAT1-item: Home/Home/CAT1/CAT2-item

    Test with no page parent set / custom menu links for Portfolio Cats
    If I do not select a parent page for these two portfolio category pages (simply because they do not have a parent page), and set the menu items with custom links like you suggested, this results in the following breadcrumbs:
    Opening CAT1-item from CAT1 Menu link: Home/CAT1/CAT1-item
    Opening CAT2-item from CAT2 Menu link: Home/CAT2/CAT2-item
    Opening CAT2-item from button in CAT1-item: Home/CAT1/CAT2-item

    Conclusion:
    So unfortunately the conclusion is that the behaviour is not solved through custom menu links.
    The only difference that makes is that now the CAT2-items, when opened from the CAT2 page, actually retain the proper category (CAT2), whjere before they retained the CAT1 indefinitely when that link was visited first.
    But when opened through a link (button) from a CAT1-item they still show Home/CAT1/CAT2-item…

    For my understanding: can you explain why this is so difficult for the theme to determine? All portfolio items in both portfolio categories are properly assigned to only their own respective portfolio categories.
    Shouldn’t the theme be taking the breadcrumb category for each portfolio item from the assigned portfolio category for the items from the database?

    At the moment (because this is a simple site setup with only 2 portfolio categories of equal level) I can manage by doing a manual intervention. But you can imagine how this would quickly become unmanageable if there were lots of portfolio categories or even nested ones, then the need for manual intervention would quickly become a nightmare.

    Long story short: I hope the theme breadcrumbs should in some way be able to detect the proper portfolio parent category for each item and link to that, after all, they are there, assigned properly.

    I have included access to the dev site in private field if you want to try it out there.

    Thanks for your help,
    Rob

    in reply to: entypo-fontello and custom fonts add font-display #1224182

    Hi Victoria,

    Thanks, I had not seen that yet :-)

    However, it doesn’t solve my issue:
    I have 2 Google fonts and an extra fontello font served from local.
    If I set the option to swap for the two normal fonts, the fontello-extra (icons) also gets swap …

    How can I set the exception for the extra fontello icons so that gets block?

    Kind regards,
    Rob

    in reply to: Open Youtube videos with Privacy Enhanced Mode #1218635

    Hi Nikko,

    That’s brilliant, what a good find!
    Tested on both dev and live, it works great, problem solved completely.

    Thanks again for the fix and for your help and great support!

    Kind regards, Rob

    in reply to: Open Youtube videos with Privacy Enhanced Mode #1218351

    Hi Nikko,

    Thanks for checking this and for clarifying the unchanged ahref links in the page source for me, I did not understand that until now.

    I see, so this last script for checking does the same as putting the format https://www.youtube-nocookie.com/embed/<VIDEO-ID> directly in the custom link for the image in the portfolio item?
    Indeed then the video does not open in a lightbox anymore but breaks out of the iframe. So, we can’t embed an iframe in a lightbox. Noted.

    Parent theme:
    I can confirm that when I put in the parent theme avia-snippet-lightbox.js, line 40:

    src: '//www.youtube-nocookie.com/embed/%id%?autoplay=0&ecver=2&showinfo=0&loop=1&rel=0&modestbranding=1&fs=0;'

    and enter the normal “https://www.youtube.com/watch?v=<VIDEO-ID>” in the custom link in the gallery image, then indeed the video is served from youtube-nocookie (cookie inspection with developer tools).

    I have done another test just now for the the replacement in the child theme (and of course adding your replacement script for avia-snippet-lightbox.js to the child theme functions.php) and now it seems that this also works, the video is served from the youtube-nocookie domain (cookie inspection with developer tools).
    Enabling or disabling javascript merge/compress in Enfold Performance does not seem to make a difference.
    I have no idea why the replacement in the child theme did not give that result the first times (in my tests and in yours).

    Can you doublecheck if it also works on your installation just to make sure that doing it in the child theme works consistently?

    function change_lightbox() {
      wp_dequeue_script( 'avia-lightbox-activation' );
      wp_enqueue_script( 'avia-lightbox-activation', get_stylesheet_directory_uri().'/js/avia-snippet-lightbox.js', array('avia-default'),2 ,true );
    }
    add_action( 'wp_enqueue_scripts', 'change_lightbox', 100 );

    Thanks for your time and help! Kind regards,

    Rob

    P.S.
    Obviously, if the same result is positive in your test with the child theme change, then please close this as solved.
    Thanks again for your support!

    Added information:
    Funny thing, on the live site I can only get this to work when setting the avia-snippet-lightbox.js changes in BOTH the parent theme and the child theme, while leaving the child theme replacement code for avia-snippet-lightbox.js intact.
    But I definitely ALWAYS have to re-save the Enfold child theme options to view the effect.
    Obviously making changes to the parent theme is not ideal, so I would appreciate if at some point you could come up with an explanation and a solution to only do it in the child theme.

    • This reply was modified 4 years, 5 months ago by rob2701. Reason: Added additional information after testing some more
    in reply to: Open Youtube videos with Privacy Enhanced Mode #1216677

    Hi Nikko,

    Does not work for me, not even in parent theme and with js file merging and compression turned off.
    Same result: still the standard youtube link in the page source.
    Feel free to try it out on this development site, it’s a copy and well backed up. You have the link.
    Thanks for your time.

    Regards,
    Rob

    Additional info:
    Updated child theme header.php to reflect 4.7.5 changes, just to make sure. Everything left to NOT use the child theme lightbox.js but made the change in the parent theme. Same result, no replacement of youtube URL in page source.

    • This reply was modified 4 years, 6 months ago by rob2701. Reason: added additional info for clarity
    in reply to: Open Youtube videos with Privacy Enhanced Mode #1216259

    Hi Nikko,

    I updated the theme to 4.7.5 (thanks for the update, Team!)
    Commented out (in the child theme functions.php )the code switcher you provided above for using avia-snippet-lightbox.js in child theme instead of the parent theme one
    Modified avia-snippet-lightbox.js in the parent theme and saved
    Entered additional video (just to make sure nothing was cached somewhere in the database) using
    https://www.youtube.com/watch?v=

    Result is the same, the standard youtube link is NOT replaced with the youtube-nocookie link in the page source

    The temp login credentials I put in private field earlier are still valid, if you want to take a look. I have left things like I described above.

    Kind regards,
    Rob

    • This reply was modified 4 years, 6 months ago by rob2701. Reason: some typo and grammar fixes
    in reply to: Responsive Content Images & Retina Screens #1215045

    Hi,

    Glad to hear the initial code works.

    Like I explained above, for some reason the General settings page in Regenerate Thumbnails keeps showing the default registered image sizes in WP. But when you actually regenerate the thumbnails on an actual image, then it correctly shows the registered ones with a green checkmark and the deregistered ones with a red cross. Don’t know why, you should ask the developer of the plugin. Same for why it doesn’t remove the unused redundant thumb sizes, plugin developer will know more than me. But if the Regenerate Thumbnails Advanced by Shortpixel works for removing the redundant ones, great. Use it once, then after that the Regenerate Thumbnails one will handle the new ones correctly.

    Trimage says it will work an Mac, macOS Trimage is available from Homebrew, to install, type:
    brew install trimage
    Launch by executing trimage in Terminal.

    ImageOptim (For macOS) may be a good alternative. PNG Gauntlet for PNGs.
    Caesium Image Compressor may also be a good choice.

    Regarding my choice to disable WP srcset for now:
    I have opted out of that to be able to serve “1 double size image with high compression for all devices”. It results in sharp images but no extra page weight. At the moment there is no way with Enfold to serve different images to different devices using the Retina approach chosen. If you enable WP srcset it will just create lots of extra image sizes which cannot be used in Enfold effectively anyway now.
    Also don’t be fooled too much by the possibility of using CSS choices for different devices (by duplicating blocks and assigning custom CSS classes to specify the device, it will just result in ALL the images for ALL devices loading on your pages ALL THE TIME (yes, for all devices regardless).
    So no, I don’t know at the moment how you could implement WP srcset while using Enfold.
    Hence my approach: 1 image fits all. Added bonus: less http requests in galleries, even if images are heavier on smaller devices for now.

    Of course, once Enfold implements srcset (which they have promised to deliver at some point) the whole approach changes, as we will hopefully be able to serve different sizes to different devices (but still maintain the double size high compression approach for all of them).

    Kind regards,

    Rob

    • This reply was modified 4 years, 6 months ago by rob2701. Reason: Removed my stupid remark about why Regenerate Thumnails might not be picking up the list of unset image sizes in its on its general page. Turns out others have noticed the same behaviour (on the plugin's Support page)
    in reply to: Open Youtube videos with Privacy Enhanced Mode #1214958

    Hi Nikko,

    Thanks for looking into this. Details in private field.

    Kind regards,

    Rob

    in reply to: Responsive Content Images & Retina Screens #1214630

    If that doesn’t do the trick try this (replace the relevant part):

    // Remove unneeded WP image sizes
    // updated 2020-01-13 because of additional image sizes
    function remove_default_image_sizes( $sizes) {
      unset( $sizes['thumbnail']); // 80px thumbnail
      unset( $sizes['small']); // 150px thumbnail - (Size based on Media setting)
      unset( $sizes['medium']); // 300px - (Size based on Media settings)
      unset( $sizes['medium_large']); // 768 - (Size based on Media settings)
      unset( $sizes['large']); // 1024
      unset( $sizes['extra_large']); // 1500
      unset( $sizes['1536x1536']);
      unset( $sizes['2048x2048']);
    // Add these 2 lines to remove the "new" WP default image sizes:
      remove_image_size( '1536x1536' );
      remove_image_size( '2048x2048' );
      return $sizes;
    }
    add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes');

    By the way, in Settings > Media I have:
    Thumbnail size 80×80, crop checked
    Medium size 300×300
    Large size 1024×1024
    Check yours before doing the regenerate

    Oh yeah, and you only see the REAL sizes created in an actual image “Regenerate”, the General “Regenerate Thumbnails” setting shows the “default” registered sizes. Strange but true. Perhaps that is the only issue?
    After regenerating you can check this by doing a regenerate on an actual image, and of course by checking the actual files through FTP.

    • This reply was modified 4 years, 6 months ago by rob2701. Reason: Added remark about how to check for ACTUAL created thumbs
    in reply to: Responsive Content Images & Retina Screens #1214625

    AFTER checking the registered image sizes in WP Settings > Media are correct and AFTER setting the code in the child theme functions.php, do this:

    > Tools > Regenerate Thumbnails
    UNcheck: Skip regenerating existing correctly sized thumbnails (faster).
    CHECK: Delete thumbnail files for old unregistered sizes in order to free up server space. This may result in broken images in your posts and pages.

    You should have remaining:
    widget: 36×36 pixels (cropped to fit)
    This is used in the Dashboard for the portfolio items

    square: 180×180 pixels (cropped to fit)
    This is used on the frontend for the Previous/Next buttons to switch between Galleries

    Should work like this, does for me :-)

    • This reply was modified 4 years, 6 months ago by rob2701.
    in reply to: Responsive Content Images & Retina Screens #1214506

    Hi dgvicario,

    There have been some changes since then to WP and some additions also by me for some things.
    Below is what I now have in my child theme’s functions.php regarding images and thumbnails:

    // set WordPress compression of image and thumbnails on upload and resize to 90 or 95
    // images are manually resized, compressed and optimized BEFORE upload already,
    // WP compression on images on resize/for thumbnails is standard = 82
    add_filter('jpeg_quality', function($arg){return 95;});
    
    // disable image scaling in WordPress 5.3 update (november 2019)
    // WP added feature that forces images to scale down if larger than threshold (2560px)
    // this interferes with chosen approach for retina images, i.e. serving up
    // double-size images with very high compression...
    add_filter( 'big_image_size_threshold', '__return_false' );
    
    // remove "responsive images" functionality in WP 4.4 and on from this theme
    add_filter('wp_get_attachment_image_attributes', function($attr) {
       if (isset($attr['sizes'])) unset($attr['sizes']);
       if (isset($attr['srcset'])) unset($attr['srcset']);
       return $attr;
    }, PHP_INT_MAX);
    add_filter('wp_calculate_image_sizes', '__return_false', PHP_INT_MAX);
    add_filter('wp_calculate_image_srcset', '__return_false', PHP_INT_MAX);
    remove_filter('the_content', 'wp_make_content_images_responsive');
    
    // Disable WordPress responsive srcset images
    add_filter('max_srcset_image_width', create_function('', 'return 1;'));
    
    // Disable theme thumbnail creation, will do image sizes manually
    // double-size thumbnails for retina screens
    // so we do not use the automatically resized and cropped thumnails from the theme
    // better to create them manually proper size and image compression
    // use Photoshop to set exact double size and quality between Q10 and Q40
    
    // Disable loads of Enfold & WP image sizes upon upload (to save space)
    add_action('init', 'remove_enfold_image_sizes');
    function remove_enfold_image_sizes() {
    // do NOT remove widget size, is used in backend portfolio items!
    // do NOT remove square size, is used in backend portfolio and previous/next buttons!
    //	remove_image_size('widget');
    //	remove_image_size('square');
    	remove_image_size('featured');
    	remove_image_size('featured_large');
    	remove_image_size('portfolio');
    	remove_image_size('portfolio_small');
    	remove_image_size('gallery');
    	remove_image_size('magazine');
    	remove_image_size('masonry');
    	remove_image_size('entry_without_sidebar');
    	remove_image_size('entry_with_sidebar');
    	remove_image_size('shop_thumbnail');
    	remove_image_size('shop_catalog');
    	remove_image_size('shop_single');
        remove_image_size('shop_gallery_thumbnail');
    }
    
    // Remove unneeded WP image sizes
    // updated 2020-01-13 because of additional image sizes
    function remove_default_image_sizes( $sizes) {
      unset( $sizes['thumbnail']); // 80px thumbnail
      unset( $sizes['small']); // 150px thumbnail - (Size based on Media setting)
      unset( $sizes['medium']); // 300px - (Size based on Media settings)
      unset( $sizes['medium_large']); // 768 - (Size based on Media settings)
      unset( $sizes['large']); // 1024
      unset( $sizes['extra_large']); // 1500
      unset( $sizes['1536x1536']);
      unset( $sizes['2048x2048']);
      return $sizes;
    }
    add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes');
    
    // Lightbox links default to "large" size thumbnail, we link it to original image size
    add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
    function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta) {
       $link = wp_get_attachment_image_src($attachment->ID, "full");
       return $link;
    }
    
    // Disable scrolling of background when lightbox image opened
    add_action('wp_footer', 'custom_lightbox_script');
    function custom_lightbox_script(){
    ?>
    <script type="text/javascript">
    (function($) {
        function a() {
          $('body').on('click', '.lightbox-added', function() {
            if($('.mfp-bg').length >= 1) {
              $('html').css("overflow-y", "hidden");
            }
          });
    
          $('body').on('click', function() {
            setTimeout( function() {
              if($('.mfp-bg').length == 0) {
                $('html').css("overflow-y", "scroll");
              }
            },500);
          });
        }
      a();
    })(jQuery);
    </script>
    <?php
    }

    Hope that helps, try it out.
    Rob

    P.S.:
    Don’t forget to do a further (lossless) compression on the images you created in Photoshop BEFORE upload to WP, using for example File Optimizer on Windows or Trimage on Linux.

    P.S. #2
    Note that the sizes you set in WP Settings > Media Settings affect the sizes for Thumbnail size, Medium size and Large size – and set “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” checkmark.

    • This reply was modified 4 years, 6 months ago by rob2701. Reason: Added remark about Media Settings in WP
    in reply to: Open Youtube videos with Privacy Enhanced Mode #1214122

    Hi Team,

    I also wanted the privacy enhanced mode for masonry gallery images with custom link to videos.
    I followed the instructions in
    https://kriesi.at/support/topic/open-youtube-videos-with-privacy-enhanced-mode/
    to the T.

    Added the mentioned script replacement in child theme functions.php.

    Changed line 39 in the avia-snippet-lightbox.js (copied to the child theme) to:

    src: '//www.youtube-nocookie.com/embed/%id%'

    but… the a href in the page source still shows:

    https://www.youtube.com/watch?v=

    when it should have become:

    https://www.youtube-nocookie.com/embed/

    Page cache and browser cache cleared many times, of course.

    No idea why this happens. Can you help me out?

    Thanks in advance.
    Rob

    • This reply was modified 4 years, 6 months ago by rob2701.

    Hi Ismael,

    The uneven lines thickness is there to my eyes… :-)
    Beste visible at around 900px, in you own default demo: https://kriesi.at/themes/enfold/

    FF 73.0.1 > top and bottom lines thinner
    Opera 67.0.3575.53 > center line thinner
    Chrome 80.0.3987.132 > center line thinner

    The visibility of what I mention could maybe have something to do with the fade-in transition you apply to the icon, which makes it sometimes very visible sometimes not so much. Maybe only on a cleared browser cache.

    Anyway, it was just something I noticed and fixed on my own devsite.
    But if no one else sees it, then please close this as solved, by all means.

    Kind regards,

    Rob

    Additional info:
    This is on Win8.1, when I see the same version FireFox on Linux Mint 19.3 there is no uneven line thickness… ????
    I think the transition applied could be the issue on Win8.1 FireFox and other browsers.
    Anyways, the color not applying after setting it in Theme Options > Main Menu > Burger/Mobile Menu Styling between 768px and 989px is valid on all platforms and browsers, you may want to check that.

    • This reply was modified 4 years, 8 months ago by rob2701.

    Hi Ismael,

    I have set up access on the test server for the development theme and the clean theme.
    See private links.

    Regards,
    Rob

    Hi Ismael,

    No, sorry, local installation.

    But I can also see it on a standard Enfold 4.7.3 installation with child theme, default demo imported. (using FireFox 73.0.1)

    When resizing the browser from max to smaller, if you look closely you can see the top and bottom lines of the hamburger icon are thinner than the center line (because of the negative top and bottom you apply in the layout css)
    .
    And the color only applies below 768px when set in the Main Menu options, not from 768 to 989px.

    Kind regards,

    Rob

    in reply to: Responsive Content Images & Retina Screens #1125948

    Hi Tanja,
    I understand you may be a little worried at the cost of a little more image weight using the non-scaled images also for the preview strip in the galleries…
    You can always try to add one of the size which Enfold recommends in the dropdowns then, of course.
    But I wouldn’t worry about it too much though, that’s why I suggested using the “no scaling” option for the galleries.
    You see, that way the full images to be opened in the lightbox on click are already loaded on the page itself (check the page source), so it saves quite a few extra http requests at the cost of a little more image weight. What you lose on the swings you gain on the roundabouts :-)
    Kind regards,
    Rob

    in reply to: Responsive Content Images & Retina Screens #1125567

    Hi Tanja,
    The featured images setting works only on the portfolios of course.
    For the galleries you just upload the originals and choose for example small thumbnails and “No Scaling”.
    The browser will resize the images for the preview strip from the original and open the original size in the lightbox.
    Just experiment.
    Kind regards,
    Rob

    in reply to: Responsive Content Images & Retina Screens #1125481

    Hi Tanja,
    The images for the gallery are two different ones: one for the preview (the thumbnails), one for the originals (full size).
    Same for shop product previews and full sizes.
    For example:
    I name the ones for the preview strip (example, ftd means featured from featured image):
    <imagename>-ftd-800×533-q30.jpg
    and the ones for the full view:
    <imagename>-1920×1280-q30.jpg
    to distinguish between them in the Media Library.
    The browser takes care of relatively adjusting the relative sizes from the originals in other cases.
    Hope that clears it up.
    Kind regards,
    Rob

    In other words, the principle is always the same: double the actual size with high compression.
    Consult the list above to see the actual pixel sizes for the type of page you create the image for.

    • This reply was modified 5 years, 3 months ago by rob2701. Reason: added some info to clarify
    in reply to: Responsive Content Images & Retina Screens #1125426

    Hi Tanja,
    The whole idea about my solution is to serve up ONE high resolution image to all devices, but to make that image bigger with higher compression (for retina screens and zooming sharpness). This is because on all modern devices images can be zoomed (enlarged), so the “traditional” way of serving smaller images to certain devices would result in blurry images when enlarged or when viewd on retina/high resolution screens.
    That is why I chose to disable the WP responsive images solution and disable the same approach used by Enfold.
    See https://www.netvlies.nl/tips-updates/algemeen/design-interactie/retina-revolution/ for the background on this.

    To take this approach you need to MANUALLY upload the correct size and resolution for each image on that particular page, using Photoshop or similar.

    When you start this on an already existing site the code changes will ONLY affect NEW uploads, i.e. newly uploaded images will not get all of those resized thumbnails created.
    You can then (at your own pace) start to replace the existing images with the new accurately sized ones. I recommend a plugin like “Enable Media Replace” to make this process less “painful”.
    Once you have replaced all existing images with new precisely sized ones, you can then use a plugin like “Regenerate Thumbnails” to recreate the proper thumbnail sizes (without all the additional ones) and get rid of all previously created, now unneeded, thumbnail sizes to save space on the server.

    I have been using this method for several years now, and I am completely happy with both the loading speed and the image quality even when zoomed.

    So try it out and see if it works for you. Hope this helps.

    Regards,
    Rob

    in reply to: lists in widgets – regression? #1088156

    Hi Ismael,

    Ah, brilliant! I had not tried the overflow because it’s ugly and I had totally overlooked the fact that the footer columns have no margins and no padding :-)
    Works perfectly. Thanks for your help! Solved.

    Kind regards,
    Rob

    in reply to: WooCommerce cart item deletion behaviour with Enfold #1087147

    Hi Mike,

    I see. I’m getting help from Marko at W3TC to get to the bottom of this. I’ll post here when we know more.

    By the way, the same issue happens with the 2019 theme, so chances are slim that this has to do with Enfold.

    With W3TC enabled the issue is ONLY with the X, when using quantity=0 it works fine, and with the “Empty Cart” plugin (which deletes all cart items at once) there is also no issue with W3TC active.

    Right-clicking on the X to open in a new tab opens the Home page though, but then when you go to the shop it nicely shows “ITEMNAME deleted. Undo?” so without the need for a page refresh.

    Could be a thing in the browser cache in W3TC, could be the way the page refresh is called with the X (Woo/Enfold?).
    I saw that earlier in the forum there was an issue that could maybe point in the right direction:

    Kind regards,
    Rob

    • This reply was modified 5 years, 7 months ago by rob2701. Reason: added info
    in reply to: lists in widgets – regression? #1087146

    Hi Ismael,

    Thanks for looking at this. Unfortunately (like I stated above earlier and in the text on the footer textwidget itself), UL inside always worked :-)
    It’s UL outside that doesn’t want to comply. I put the code underneath yours in the QuickCSS. Can you take another look? Thanks.

    Kind regards,
    Rob

    To sum it up:
    – OL works fine, but may need wordwrap for very long words?
    – UL INSIDE works, but may need wordwrap for very long words?
    – UL OUTSIDE does not work, not even when adding a custom-class to the UL

    Please see the 3rd footer column on the Home page

    • This reply was modified 5 years, 7 months ago by rob2701. Reason: Added info for clarity
    in reply to: WooCommerce cart item deletion behaviour with Enfold #1085879

    Hi Mike,

    Thanks for the reaction and time.

    Any insight you guys can give me regarding the coding difference between deleting through the cross and deleting through the quantity in the cart?

    Kind regards,
    Rob

Viewing 30 posts - 91 through 120 (of 150 total)