Skip Navigation

[Resolved] Compare Headings not aligning

This support ticket is created 5 years 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by alishiaM 5 years ago.

Assisted by: Shane.

Author
Posts
#1381025
Screenshot 2019-11-12 at 13.28.24.png

Tell us what you are trying to do?
Dear Toolset team. I am testing the compare function on a test site and want to use it on my main site later if working correctly. The compare function works perfectly. But because I am pulling the compare data from a Custom post type with custom fields with different length of information, the headings is not lining up. - see image. What would be the best and easiest way to get the headings to always line up no matter which post type is selected for the comparison? Thank you

Is there any documentation that you are following?
https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/#comparison-results

Is there a similar example that we can see?
On my main site I used a plugin called" Alike" and the comparison line up, (see: hidden link) but I want to use the toolset method.

What is the link to your site?
My test site is: hidden link

Thank you
Alishia

#1381393

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alishia,

In reality this would be very difficult to achieve because you will need to set a fixed height for the headings so that this fixed height will be maintained.

The really issue now is to how you will determine that fixed height since it will won't always be the same items you are comparing.

What will happen is that you will be left with large amounts of empty spaces even if there is little or no data in the space.

Right now the best solution is for a fixed height but it has to be determined by a single post with the maximum number of options so that you can see what is the maximum height that a heading will have.

Thanks,
Shane

#1381737
Screenshot 2019-11-13 at 07.52.39.png

Thanks Shane. How would you set a fixed height for every individual custom heading in the Loop item? I attached a jpeg of my current template.

#1382167

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alishia,

Since you didn't define a specific class for the area where the content is rendered then you will need to do this.


<p class="fixed-height">types shortcode here</p>

Then you will style the fixed height like this.


.fixed-height{
height: 200px;
}

Thanks,
Shane

#1382605

My issue is resolved now. Thank you!