Forum Replies Created

Viewing 15 replies - 16 through 30 (of 51 total)
  • Forum: Plugins
    In reply to: [Arconix FAQ] PHP error

    Thank you for this post! most appreciated! Will fix it this way lets hope it will be in the next update.. 🙂

    Thread Starter phj123

    (@phj123)

    Wow REALLY NICE, Thank you so much!

    Haha as you aspect from my reaction, it is definitely working!

    😀

    Thread Starter phj123

    (@phj123)

    Thank you for your reply again it is much appreciated!

    Somehow I can’t figure out how to adapt the filter so it will put out absolute URLs.

    Do you have an idea how to accomplish this?

    Thread Starter phj123

    (@phj123)

    And is there a way that you know of to add https:// to WooCommerce responsive archive image URLs?

    • This reply was modified 8 years, 4 months ago by phj123.
    Thread Starter phj123

    (@phj123)

    I use gravity forms to send the wishlist shortcode within the message, anyway, this was working fine and it has definitely nothing to do with the wishlist plugin or the way I send the message.

    Before the update, when all my image URLs did appear absolute there wasn’t a display problem at all.

    • This reply was modified 8 years, 4 months ago by phj123.
    Thread Starter phj123

    (@phj123)

    Users can send their wishlist over, now on the main language with relative URLs (some), email clients will not display the images anymore.

    So this is why I need to only use absolute image URLs.

    Thread Starter phj123

    (@phj123)

    Hey Caleb,

    Thank you for the reply! Yes, how they show up in the HTML is what I mean.

    Is there a way to tell WordPress to output all responsive images URLs in HTML absolute so with https:// prefix.

    Now it sometimes does this but sometimes it doesn’t. I just noticed this after the update!

    SSL plugins and or mixt content plugins didn’t get the job done, do you have any idea how to accomplish this?

    Thread Starter phj123

    (@phj123)

    Hi Joris,

    Hope you had a great time in Spain 😀

    Good news, if you need a beta tester sign me up haha 🙂

    Thread Starter phj123

    (@phj123)

    WoW Awesome it is working perfectly, Thank you for this update!

    A final question, is it also possible to use a rem instead of px offset?

    Thread Starter phj123

    (@phj123)

    That sounds great!

    Just give any test site a fixed header and you can see this behavior (of course the page has to be longer than the screen, there has to be a scroll to see the behavior)

    Can’t wait till the update, this would be a great option! 😀

    • This reply was modified 8 years, 5 months ago by phj123.
    • This reply was modified 8 years, 5 months ago by phj123.
    Thread Starter phj123

    (@phj123)

    Yes I know, but I honestly think this is a downgrade as this is forcing big images on gallery thumbnails also a native crop would be a better solution then use css on gallery thumbnails.

    There will be a lot of users with warnings about this way of using images on website speed/test tools.
    Also, it can indeed down crease site speed!

    Looking for a way to get the thumbnails and catalog images used separately again.
    And get back control over what is cropped an what image isn’t..

    Thread Starter phj123

    (@phj123)

    Yes I know, but I honestly think this is a downgrade as this is forcing big images on gallery thumbnails also a native crop would be a better solution then use css on gallery thumbnails.

    There will be a lot of users with warnings about this way of using images on website speed/test tools.
    Also, it can indeed down crease site speed!

    Looking for a way to get the thumbnails and catalog images used separately again.
    And get back control over what is cropped an what image isn’t..

    Thread Starter phj123

    (@phj123)

    I added this to my function.php:

    add_action(‘init’, ‘remove_then_add_image_sizes’);

    function remove_then_add_image_sizes() {
    remove_image_size(‘woocommerce_thumbnail_2x’);
    }

    After this, I saved the woocommerce image sizes within the customizer again but without any effect, the woocommerce_thumbnail_2x image is still loading with the rest of the wordpress responsive images.

    How can i it remove from the woocommerce_regenerate_images_intermediate_image_sizes filter?

    Thank you for you fast reply 😀

    You can add a image to the placeholder/product within the right side of your product page.

    You can change the placeholder like this: add this code to your function.php

    /**
    * Change placeholder.
    */
    add_action( ‘init’, ‘custom_fix_thumbnail’ );
    function custom_fix_thumbnail() {
    add_filter(‘woocommerce_placeholder_img_src’, ‘custom_woocommerce_placeholder_img_src’);
    function custom_woocommerce_placeholder_img_src( $src ) {
    $src = get_template_directory_uri() . ‘/placeholder.png’;
    return $src;
    }
    }

    And drop a custom placeholder image in your theme named: placeholder.png

    If you want to remove the placeholder add this to your css:

    img.woocommerce-placeholder.wp-post-image {
    display:none;
    }

    Thread Starter phj123

    (@phj123)

    Why this isn’t working???

    /**
    * Add Image sizes.
    */
    function customize_image_sizes($sizes) {
    unset( $sizes[‘thumbnail’]);
    unset( $sizes[‘medium’]);
    unset( $sizes[‘medium_large’]);
    unset( $sizes[‘large’]);
    unset( $sizes[‘woocommerce_thumbnail’]);
    unset( $sizes[‘woocommerce_thumbnail_2x’]);
    unset( $sizes[‘woocommerce_single’]);
    unset( $sizes[‘wysija-newsletters-max’]);
    return $sizes;
    }

    add_filter(‘intermediate_image_sizes_advanced’, ‘customize_image_sizes’);
    add_image_size(‘responsive_small_medium’, 336, 336, false );
    add_image_size(‘responsive_medium_large’, 756, 756, false );

    add_filter( ‘woocommerce_resize_images’,’__return_false’ );
    add_filter( ‘woocommerce_background_image_regeneration’,’__return_false’ );

    /**
    * Define image sizes
    */
    function yourtheme_woocommerce_image_dimensions() {
    $catalog = array(
    ‘width’ => ’1134’, // px
    ‘height’ => ’1134’, // px
    ‘crop’ => 0 // false
    );

    $single = array(
    ‘width’ => ’504’, // px
    ‘height’ => ‘504’, // px
    ‘crop’ => 0 // false
    );

    $thumbnail = array(
    ‘width’ => ’224’, // px
    ‘height’ => ’224’, // px
    ‘crop’ => 1 // true
    );

    // Image sizes
    update_option( ‘shop_catalog_image_size’, $catalog ); // Product category thumbs
    update_option( ‘shop_single_image_size’, $single ); // Single product image
    update_option( ‘shop_thumbnail_image_size’, $thumbnail ); // Image gallery thumbs
    }

Viewing 15 replies - 16 through 30 (of 51 total)