Navigation überspringen

[Gelöst] View grids do not display in 3 columns when not logged into the site

This support ticket is created vor 11 Monaten, 1 Woche. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 17 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von katieS vor 11 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2710465

Here is some further information I have found by comparing logged in and not logged in
When logged in:
I inspect the View listing the Charity partners and see this
.wpv-view-output[data-toolset-views-view-editor="3e546b1bc6bb19e70ecb94a35e0b8dbc"] .js-wpv-loop-wrapper > .tb-grid {
grid-template-columns: minmax(0, 0.33333333333333fr) minmax(0, 0.33333333333333fr) minmax(0, 0.33333333333333fr);
grid-auto-flow: row;
}

.tb-grid, .tb-grid>.block-editor-inner-blocks>.block-editor-block-list__layout {
display: grid;
grid-row-gap: 25px;
grid-column-gap: 25px;
}
Both these elements have a source of charity-partners/

When not logged in, I do the same and I just find this:
,tb-grid, .tb-grid>.block-editor-inner-blocks>.block-editor-block-list__layout {
display: grid;
grid-row-gap: 25px;
grid-column-gap: 25px;
}
with a source of style.css

It appears that the Toolset settings from within the Charity partners view are lost when not logged in.

I don't know whether this helps at all

#2710556

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

I'm not sure why its not working for you but as I already shared video for me it works as loggedin or without loggedin and works perfectly.

So as a workaround for now I've added the same CSS code that works to the content template's custom CSS box.

Can you please check if it works as expected.

#2710581

Thank you for continuing to try to help.
It is obviously frustrating when you cannot replicate and see the problem.
The site is still not picking up the View css for the grid unless I am logged in.

I have seen that the Blog page is working fine when logged in or out.
This is created from a WordPress Archive that I created from with Toolset.
.wp-block-toolset-views-wpa-editor .js-wpv-loop-wrapper > .tb-grid {
grid-template-columns: minmax(0, 0.33333333333333fr) minmax(0, 0.33333333333333fr) minmax(0, 0.33333333333333fr);
grid-column-gap: 30px;
grid-auto-flow: row;
}
This continues to be active even when logged out.

I have considered creating a WordPress Archive for my custom post 'Charity Partners' but I do not believe I would be able to add that as a block into my 'Charity partners page layout' template.
Please can you confirm that this is the case?

This whole issue is worrying as many of the sites I have created have used content templates containing a View and it would appear to be where the problem lies.

Thank you for your patience

#2710596

Many thanks for your help and patience Minesh!
I have finally tracked down the culprit to a Cookie banner plugin.
I have deactivated that and things are looking good logged in or not.

I am still interested in the question of whether it is possible to add a WordPress Archive block inside a Toolset content template but it is not absolutely necessary for this issue.