Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM Why we create different images copies for each image you upload. How to modify the rules.

This topic contains 1 reply, has 2 voices, and was last updated by  mitchoo 1 year, 11 months ago.

  • Author
    Posts
  • #108757

    Anna
    Keymaster

    Theme resize rules are included in our theme – in general-settings.php

    We do not recommend deleting any rule as each is used for a certain purpose.

    If you wish to make changes please follow WordPress resize rules to modify code. If you wish to remove an image, make sure it is not needed in your theme setup.

    Help: http://codex.wordpress.org/Function_Reference/add_image_size

    Change the height in the code below if you wish to change resize rules.

    After this you need to check old images and you must regenerate old images based on the new size rules.

    For regenerate thumbs you can use this plugin: Force Regenerate Thumbnails plugin – https://wordpress.org/plugins/force-regenerate-thumbnails/

    I recommend to use this plugin because allows you to delete all old images size and regenerate the thumbnails for your image attachments.

    It will cycle through all your existing uploaded images and regenerate all of the new image sizes you have added.
    explained below for what are used each type of resize so you can delete what you wish.

    WP RESIDENCE general-settings.php new image rules:

    add_image_size(‘user_picture_profile’, 255, 143, true);
    –> the image uploaded in user dashboard – my profile

    add_image_size(‘agent_picture_single_page’, 314, 180, true);
    –> image added as featured image – for single post page

    add_image_size(‘agent_picture_thumb’ , 120, 120, true);
    –> image in agent list or featured widget

    add_image_size(‘blog_thumb’ , 272, 189, true);
    –> image for blog post in lists of blog posts

    add_image_size(‘blog_unit’ , 1110, 385, true);
    –> image in blog post – slider full width

    add_image_size(‘slider_thumb’ , 143, 83, true);
    –> image in property post slider – the small thumb

    add_image_size(‘property_featured_sidebar’,261,225,true);
    –> image for featured property widget on sidebar

    add_image_size(‘blog-full’ , 940, 529, true);
    –> image in blog post – slider with sidebar

    add_image_size(‘property_listings’ , 265, 163, true);
    –> image in property unit – used in lists. agent image unit, used in lists.

    add_image_size(‘property_full’ , 980, 777, true);
    –>this I am not sure right now.

    add_image_size(‘listing_full_slider’ , 835, 467, true);
    –> image in property slider – with sidebar

    add_image_size(‘listing_full_slider_1′, 1110, 623, true);
    –>image in property page slider – no sidebar

    add_image_size(‘property_featured’ , 940, 390, true);
    –> image in featured property shortcode

    add_image_size(‘property_full_map’ , 1920, 790, true);
    –> image in theme slider

    add_image_size(‘property_map1′ , 400, 161, true);
    –> image property in infobox

    add_image_size(‘widget_thumb’ , 105, 70, true);
    –> image in latest listings widget

    add_image_size(‘user_thumb’ , 45, 45, true);
    –> image in featured property – agent/user image

    add_image_size(‘custom_slider_thumb’ , 36, 36, true);
    –> this is user profile image – user menu

    set_post_thumbnail_size( 250, 220, true);
    –> this is the submission form – image thumb

    • This topic was modified 2 years, 5 months ago by  Anna.
    • This topic was modified 2 years, 5 months ago by  Anna.
    • This topic was modified 2 years, 3 months ago by  Anna.
  • #123461

    mitchoo
    Participant

    After two days hair pulling…

    Agent picture as used on homepage is defined as property-listings in general-settings (V 1.12.1)

    add_image_size(‘property_listings’ , 265, 163, true);
    –> image in property unit – used in lists

    Agent picture for single age is defined as agent picture

    add_image_size(‘agent_picture_single_page’, 314, 180, true);
    –> image added as featured image – for single post page

You must be logged in to reply to this topic.