Dear Théo
My main shop page is a page
is your's not?
When applying the following code (documentation):
<script>
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
console.log("layoutObj", layoutObj);
console.log("type", type);
console.log("obj", obj);
});
</script>
I get a console readout:
obj
{id: '11', type: 'page', slug: 'shop', catid: ''}
catid: ""
id: "11"
slug: "shop"
type: "page"
[[Prototype]]: Object
Then i can use the following if
statement to be sure:
<script>
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
if(type == "page" && obj.id == 11){
console.log("fantastic!");
}
});
</script>
Result:

So i know the code that i use within the if
statement will be applied to this page.
Hope this helps & best wishes Théo ✨
Richard