Skip Navigation

[Resolved] views display is changing in my slider using divi

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

Problem: I am using a Divi Slider module to display several Views. The first page of results looks correct, but after paginating the Slider the next page of results is formatted incorrectly.

Solution: Instead of using the Divi Slider module's Design section to modify the font styles, margins and padding, use custom CSS classes to set those values.

This support ticket is created 6 years, 3 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 12 replies, has 2 voices.

Last updated by Christian Cox 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1089422
view2.PNG
view1.PNG

I set up a row in divi where i can display 3 modules, each one is a slider displaying a view with featured jobs or offers.
page is hidden link

The first series of 3 items is ok but when the sliders change to the 2nd item, everything goes mad and especially the font size is quite bigger and the next row is sent to the right of the screen...

How can I solve this ?
Thanks

#1089432

the problem is visible on 2 sections of the page hidden link : 'emplois à la une' and 'candidats à la une'

Thanks in advance
Eric

#1089615

Hi, I'm running some tests on the site now so you may see content disappear momentarily. I'll update you soon.

#1089623

noted, I will not touch anything during the tests.

Thanks a lot for your help

#1089659
Screen Shot 2018-08-22 at 5.31.54 PM.png

I'm a bit stumped on this one, so I'm reaching out to my 2nd tier support team for assistance. I found that the problem seems to be directly related to these elements in the Divi Builder (see screenshot). If I delete all these items from the Divi Builder, the problem is resolved. So there's something going on there that is causing problems with the View's template during pagination updates. I will update you as soon as I have more information to share.

#1090103

Ok Christian,
let me know

Thanks
Eric

#1090232

Okay I have some more information about this. Divi Builder adds iterative class names to content, like this:

.et_pb_section_0
  .et_pb_row_0
    .et_pb_text_0
.et_pb_section_1
  .et_pb_row_1
    .et_pb_text_1
.et_pb_section_2
  .et_pb_row_2
    .et_pb_text_2

When you rely on Divi Builder's row- and section- and module-based CSS styles for text, these classnames become problematic because Toolset Views has no way of maintaining these classnames during AJAX updates for a View (https://toolset.com/documentation/user-guides/front-page-filters/#2-1-custom-search-settings). We've analyzed this issue and determined that this is something we cannot fix effectively for all cases. Instead, we recommend you do not use Divi Builder's text styles, but instead use CSS to target individual text modules. For example, the text module that contains the text "La plateforme de mise en relations dédiée aux Employeurs et au Personnel de Maison" should be set to the default text styles in the Design tab, and a CSS classname should be applied to the text module in the Advanced tab. Then add custom CSS to change the text's font-size or line-height. Otherwise, AJAX updates cannot be used.

#1090236

Ok, i will try this solution and let you know shortly

Regards
Eric

#1090256

Thanks, I will stand by for your update.

#1090338
bugtext.PNG

Hi Christian,

Appreciate your help. I set up various CSS classes for the text modules which are on the page.

It is far better as within the slider the titles are now displayed with the right size even with pagination updates. But I still have a remaining issue with all description texts (e.g. "super poste genial") as they are still bigger than a normal text... and I cant find how to change that... Can you help me on that ?

Thanks in advance
Eric

#1090414

Okay to get around this, I recommend wrapping the excerpt in a div with a CSS class or classes, and apply the font size to that custom class.

<div class="ts-override ts-override-excerpt-size">
{!{wpv-post-excerpt length="45"}!}
</div>

CSS:

.ts-override.ts-override-excerpt-size {
  font-size: 16px; 
}

For now, I have added this code in the View Jobs à la une 1. Check the View on the homepage to see if it's working more like you expect. If so, you can apply the same code in the other Views.

#1091103

Hi Christian,

this seems to solve the issue, thanks alot for your great support.
i still have one question : where did you put the css classes .ts-override.ts-override-excerpt-size ? I could not find in the style.css file (divi child) nor in the divi theme options (hidden link).

Thanks and regards

#1092320

I added those CSS classes in the View editor for the View Jobs à la une 1. Just below the Loop editor panel there is a CSS panel. You can toggle that panel open to find the code.