Sauter la navigation

[Résolu] Split: Content width changing with the number of results from the view

This support ticket is created Il y a 1 année et 5 mois. 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

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

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Waqar Il y a 1 année et 5 mois.

Assisté par: Waqar.

Auteur
Publications
#2669243

I have another issue with the Properties Archive. I can open a new ticket if needed but since login info is in this thread I decided to start here.

lien caché uses Properties Archive.

The content is stretching to full width regardless of the theme settings I use. But, if there are no search results, it is boxed correctly (width 1140px; margin 0 auto). So it must be something with the Archive Output, which is a grid. But I cannot figure it out.

And, in trying to find a workaround, I discovered that assigning a class (in the Block's settings under Advanced) to any of the following blocks does not stick: WP Archive, WP Archive Search, WP Archive Output, Grid. In other words, I add a class and update the archive, but the class is never output on the page and the class has disappeared the next time I edit the archive.

I hope you can see why working with Blocks and Toolset is frustrating.

#2669329

Hi,

On your website's clone, I added a class name to the settings of the block 'WordPress Archive' and it was applied correctly on the front-end.
( screenshot: lien caché )

Important note: After typing the class name, it is important to press enter so that the class is shown in a greyed box/pill.

As for the layout width changing, I added the following custom script in the archive's JS editor, which fixes this difference:
( screenshot: lien caché )


jQuery(document).ready(function( $ ) {
    $("body").removeClass("ast-page-builder-template");
});

regards,
Waqar

#2669415

Thank you, I was unaware that I needed to hit Enter to save the classes.
Your jquery works for me as well, thank you for this solution.