Forum Replies Created

Viewing 30 posts - 1 through 30 (of 72 total)
  • Author
    Posts
  • in reply to: prevent image large size duplicates #1467681

    I was trying to figure out which of the image files created is used as featured image by the posts slider and other elements displaying a featured image. I commented out the 845×684 in the filter but it still is displaying an image with inconsistent aspect ratio I think as a featured image in the:
    posts slider (bottom of page here) https://bitly.cx/bpfGm
    category pages https://bitly.cx/vSNm3
    blog post page https://bitly.cx/D8QU
    tag pages https://bitly.cx/UFSc
    I see the post slider has a Preview Image Size option but was unsuccessful using it so far.
    Your input is appreciated on this as I would like to filter out and remove 845×684 images if they are not solving this, and set the site to automatically create/crop the original image so all the above mentioned pages/modules display uniform featured image size / aspect ratio . Is that possible?
    Thanks

    in reply to: prevent image large size duplicates #1467626

    Thanks
    I noticed that I had issues with posts featured image on post silder. Seems like it needs to be a specific size in order to be display properly on the slider. Which size is that?

    in reply to: prevent image large size duplicates #1467569

    Thank you
    So regardless of the theme WP will create 14 duplicates all at 100% quality which may inflate the original file size although file dimensions are smaller?

    I applied the filters and they do prevent most of the duplicates and control their quality hence file size. The duplicates now are:
    300×225
    80×80
    768×576 (is this a widget?)
    36×36

    I am still not clear if the absence of this duplicates will create problems in serving the content to different devices.

    in reply to: prevent image large size duplicates #1467471

    Thanks
    I have about 120 images in the media library of about 65 kb each. Should be about 8MB total. But my content>uploads directory is now over 600MB. If I use the filter code to prevent further duplication of images, how can I tell which duplicates should not be removed as they are needed to properly serve content to all devices?

    Is this good practice for the theme to create duplicates of an original image of 1000px x 750px at 65kb duplicated to 845px x 684px at 330kb? When is it considered good practice to serve 330kb images?

    I will also need to remove the duplicates from the server to clear space. I see this option is available only at the premium versions of some plugins. Is there a way to remove the duplicates, their meta and db entries?

    in reply to: prevent image large size duplicates #1467358

    in which cases image duplicates of 330kb are served instead of the 60kb original?

    closed thread pls

    Thanks. That worked.
    I have 3 license. do I generate a token for each in the same manner?

    in reply to: Can’t get the Enter a valid Envato private token to validate #1467241

    still getting:
    Last time we checked the token we were not able to connected to Envato:

    Purchases could not be accessed
    Username could not be accessed (needed for your information only)
    E-Mail could not be accessed (needed for your information only)
    Following errors occurred:

    Purchases: Your private token is invalid.
    username Your private token is invalid.
    email Your private token is invalid.
    Purchases: A problem occurred accessing your purchases. Unable to check for updates.

    what’s the problem?

    in reply to: Can’t get the Enter a valid Envato private token to validate #1467240

    I did:
    Verify your Token is not missing any characters when you copy it from the source. Copied pasted from the ENvanto license certificate and purchase code
    Go to Envato account and recheck your token permission. Not sure where in my Envanto account are my token permissions. I downloaded a document with my license certificate and purchase code

    in reply to: Center align products grid on page #1442342

    Thank you very much!
    Mobile is now also center aligned.

    in reply to: Center align products grid on page #1442295

    Thank you Mike
    I did try a few css code snippets to center align the grid but they did not do it and I have commented them out. Is this what you mean by “It looks like you tried to modify the width of the items and the margin in between” otherwise where do you see alignment was attempted?
    The first code you offered works well on large screens but on a mobile the margins are still not equal left and right.
    I do wish to display three products per row.

    Thank you. removing sorting options with the PHP code worked well.
    Will the WooCommerce Product Table plugin which also allows removal of sorting options conflict with the above removal code?

    in reply to: Center align products grid on page #1442176

    The same issue exists on the product category pages – the grid is not centered on the page

    in reply to: Center align products grid on page #1442169

    the shop catalogue grid is not centered due to a these issue or woocommerce issue? Thank you

    been searching for a solution to that but nothing yet. any idea if this is possible? thanks

    in reply to: Product grid text mouseover #1441927

    That fixed it. Thank you

    in reply to: prevent auto multi image generation #1432436

    for some reason no files are deleted by Regenerate Thumbnails Advanced
    used the same plugin options
    Regenerate Thumbnails Advanced

    • This reply was modified 8 months, 4 weeks ago by Yory.
    in reply to: prevent auto multi image generation #1432005

    Of course the snippet will not delete the 1000s of files already created and the regenerate-thumbnails-advanced does not delete anything it seems although the Advanced options for Delete Unselected Thumbnails and Remove non-existent images.
    what does recalculate mean? Selecting the desired file dimensions to regenerate by the plugin?
    WIll this potentially contradict the snippet code that restricts regeneration of many image sizes?

    in reply to: copy pages from one staging to another #1432004

    sure

    in reply to: copy pages from one staging to another #1431951

    I created a tools>export all content xml
    I suppose it will also import all the superfluous image files in the exported content, 10-12 dimension versions created by wp and enfold, which may be not in use.

    in reply to: prevent auto multi image generation #1431950

    Isn’t the code supposed to stop the automatic creation of multiple images some inflated in file size considerably?
    these regenrate plugins will do that or will they generate more images or both?

    in reply to: prevent auto multi image generation #1431800

    Ive used this code but still many images generated
    Screen-Shot-2024-01-23-at-17-12-11

    // Disable loads of Enfold & WP image sizes upon upload
    // do image sizes manually, double-size with high compression for retina screens
    // use Photoshop to set exact double size and quality between Q30 and Q40
    add_action('init', 'remove_enfold_image_sizes');
    function remove_enfold_image_sizes() {
    // do NOT remove widget size, is used in backend portfolio items!
    // 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
    add_filter( 'intermediate_image_sizes_advanced', 'prefix_remove_default_images' );
    // Remove default image sizes here. 
    function prefix_remove_default_images( $sizes ) {
    // do NOT remove small and medium sizes, they are used in backend Media Library!
    // unset( $sizes['small']); // 150px
    // unset( $sizes['medium']); // 300px
     unset( $sizes['large']); // 1024px
     unset( $sizes['medium_large']); // 768px
     return $sizes;
    }
    
    • This reply was modified 9 months ago by Yory.
    in reply to: Cannot change font family #1429073

    so for the general styling font setting to have priority the advanced styling should display default in font family?

    in reply to: Cannot change font family #1429046

    i am trying different fonts.
    what needs to be the settings in advanced styling for the general styling to have a the priority?

    in reply to: Site Health error #1428988

    this is from logs directory on the server
    For some reason a log is not generated when wp-config file has (‘WP_DEBUG_LOG’, true);

    Thanks

    in reply to: Cannot change font family #1428974

    I’m not sure why my selections here are not applied
    general styling font

    in reply to: Site Health error #1428973

    can I do that with
    define (‘WP_DEBUG_LOG’, true);
    in wp-config ?

    or paste the content of the recent file I see in domain > logs on the server ?

    in reply to: Cannot change font family #1428956

    in General styling > Font my selections were not applied. All font selections are in Advanced styling?

    in reply to: Masonry gallery gap #1326456

    Thanks
    that did it for the left hand side gap on desktop on the gallery.

    in reply to: 404 setup #1326446

    Yes! that did it
    Thank you
    Closed

Viewing 30 posts - 1 through 30 (of 72 total)