Site logo

Archived topic

Different DOM structure in customizer

15 replies · Started by Dawid on October 31, 2022

Viewing posts 1–15 of 16

this is the code I use to show the overview: <!-- wp:latest-posts {"postsToShow":6,"displayPostContent":true,"displayAuthor":true,"displayPostDate":true,"postLayout": "grid","displayFeaturedImage":true,"addLinkToFeaturedImage":true} /-->

Hi there,

the Customizer uses Javascript to render the preview, its what allows it to show live changes. But that requires additional HTML on the page.

Therefore its best NOT to use the developers tools for prototyping when in the Customizer.

What is the issue you're trying to fix ?

Hi David,

in customizer the layout looks as intended, i save everything but when i view the page normally the design is gone completely. The "More" button is missing, the two column layout is gone, different fields are displayed than what I selected. All the settings I have made are not displayed, they remain saved but are not displayed.

Best regards
Dawid

Did you publish the changes you made in the Customizer ? Or is the button set to Save Draft ?

The changes are published. The button is set to Publish.

Looks like a Caching issue.
Are you using any Cache/Optimization Plugins?

W3 Total Cache is deactivated.

Can i see the site ?

you can reach the page here:
https://staging-commodityboardcom-dev.kinsta.cloud

I think I have an understanding problem. There are two different pages once my home with the following code:
<!– wp:latest-posts {“postsToShow”:6,”displayPostContent”:true,”displayAuthor”:true,”displayPostDate”:true,”postLayout”: “grid”,”displayFeaturedImage”:true,”addLinkToFeaturedImage” :true} /–>

and in the customizer I see the default home.

I have now deleted my home and the problem is gone. What code can I use to display the posts overview configured in the customizer?

that has helped me a lot.
I just want to place shortcodes in one place or another on the home page.

best thanks David for the great support!

This archived topic is closed to new replies.