Restrict Page Overlay to a single page (SEO duplicate content)
-
Hi, I need to restrict a Page Overlay to appear on only one specific page of my website
I use Page Overlays to display four secondary projects on my About page. Users open them by clicking a link in the About page text ( https://www.ceciliapiazza.com/chi-sono/ ). This is intentional — the projects are minor and I like that they're accessible only from there.
The problem is that the overlay HTML is currently being loaded on every page of the site. Since this content is quite long (four project descriptions), it's being interpreted as duplicate content across the whole site by Google.
I need an option or a code snippet to make the overlay content appear in the HTML only on the specific page (chi-sono), and not be output on any other page.
I've looked in Lay Options → Page Overlays but I couldn't find anything like "Assign to page" or "Show only on" setting.
Is this possible with Lay Theme? Either through an existing setting I might have missed, or through a small custom code snippet you could share?
Thanks a lot!
-
hey @Cecilia, you’re right, there is currently no “assign to page” setting for Page Overlays. overlays are included globally so they can also be opened from links located inside other overlays.
working on it!
Give me some time, like a few days or something, and then I will release an update. You will have a new checkbox in the other section of every page overlay configuration modal, where you can just check something like "Disable markup on pages where this overlay is not openable". -
"Only load this overlay’s markup where it can be opened"
this will be the name of it
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it