Skip Navigation

[Resolved] archive and css

This thread is resolved. Here is a description of the problem and solution.

Problem:
Two pages an image does not have the same height as the others.
Solution:
Fix this issue by adding following CSS in your theme’s style.css file or custom CSS file.

.row.equalize {
    display: flex;
    margin-bottom:20px
}
 
.row.equalize > div {
    display: flex;
     
}
 
.compagnieA {
    width: 100%;
}

Relevant Documentation:

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by kayser 6 years, 10 months ago.

Assisted by: Noman.

Author
Posts
#615113

Hi

I followed the discover-wp Tours-listing site-Travel destination
As you can see in these two pages an image does not have the same height as the others and it is incomprehensible for me

hidden link
hidden link

here is the code

<div class="compagnieA">
  <div class="padder">
<h3>[wpv-post-link]</h3>
</div>
[types field='image-de-la-compagnie' alt='%%ALT%%' title='%%TITLE%%'size="custom" width='400' height='260'  crop="true"][/types]        
[wpv-map-marker map_id="map-1" marker_id="marker-[wpv-post-id]" marker_icon="<em><u>hidden link</u></em>" marker_field="wpcf-implantation-de-la-compagnie"][wpv-post-body view_template="pour-le-popup"][/wpv-map-marker]    
</div>

Thanks for your help
Guyk

#615197

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

ss2.png
ss1.png

Hi Kayser,

Thank you for contacting Toolset support. You can fix this issue by adding following CSS in your theme’s style.css file or custom CSS file.

.row.equalize {
    display: flex;
  	margin-bottom:20px
}

.row.equalize > div {
    display: flex;
  	
}

.compagnieA {
    width: 100%;
}

And it will look as in attached screenshots.

Thank you

#615207

Hi noman
Its much better, but the first row is higher and there is a white space below the left and right images
You think there is a way to fix it to get height='260' crop="true

#615261

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Kayser,

>> You think there is a way to fix it to get height='260' crop=’true’
You need to upload larger image dimensions than provided in shortcode attributes. If you need image height 260px then you need to upload image with height larger than 260px. And if you need image width 400px and height 160px then you need to upload image with height and width larger than 400px x 160px, so it will resize to your desired dimension.

After that you do not need to use extra CSS, I have provided in last message.
Thank you

#615350

Thanks a lot
Guyk