Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Center Images in Header Slider – 2.05

This topic contains 0 replies, has 1 voice, and was last updated by  Anna 3 years, 2 months ago.

  • Author
    Posts
  • #47531

    Anna
    Keymaster

    The image resize option is set in general-settings.php The slider CSS and resize are created for landscape images.

    To edit it and allow it to show nicely also portrait, you need to modify the resize and the CSS

    general-settings.php

    This is the current resize option. Comment (and remove any resize) first.

    add_image_size(‘property_full_map’  , 1600, 590, true);

    Then install a plugin called regenerate thumbnails and regenerate all images.

    Then add this CSS in Design – Custom CSS

    <code>

    @media (min-width: 960px){
    #pictureMap img {

    width: auto;
    height: 100%;
    display: block;

    left:0;
    margin-left: auto;
    margin-right: auto;

    }

    }

     

    </code>

You must be logged in to reply to this topic.