Remove Search Results Map and expand view for listings only

This topic contains 18 replies, has 3 voices, and was last updated by  rigots 6 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #433158

    rigots
    Lifetime Member
    Post count: 275

    I also noticed that if I use: “height: fit-content;” it is the same as height=26vh; best scenario but some content is still cut of:

    So for different resolutions I am using different width and height:
    .sd.single.geodir-page .featured-area {
    height: 26vh;
    width: 80%vh;
    }
    No combination of width and height works properly for any screen resolution. Is there another CSS control that I am missing?

    What I am trying to achieve is for the featured image to resize and fit on the screen regardless of the resolution, it should always fit on the screen. I can resize the image at different resolution ranges, but I can’t figure out how to resize the width and height of the featured image on the detail page.

    Please help.
    Rigo

    #433178

    Kor
    Moderator
    Post count: 16516

    Hi Rigo,

    Try using this custom CSS code and see if it helps.

    
    
    .featured-img {
        background-size: contain!important;
    }
    #433194

    rigots
    Lifetime Member
    Post count: 275

    Hi Kor,
    Thank you very much, the above CSS worked for keeping the whole image visible in the featured image in the detail page.
    This setting also effect the featured image in the home page, now my home page does not look right.

    So how do I target the featured image only in the main page? so instead of “.feature-image { }”, I need “.SOMETHING ELSE . feature-image ()”, what is this SOMETHING ELSE that I need to target only the feature-image in the detailed page?

    Thank you again, I am almost there.

    Rigo

    #433495

    rigots
    Lifetime Member
    Post count: 275

    Hi this issue can be closed.

    I used
    .sd.single.geodir-page .featured-img {
    background-size: contain!important;
    }
    and now it works fine, with out changing the featured image in the front page and this is what I wanted.

    Thank you for all your support.

Viewing 4 posts - 16 through 19 (of 19 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount