We have our own plugin which generates “fake” subpages below a page, those contain data pulled from another system.
For that page, let’s call it Main, we want to have the content inside the grid. For the subpages, let’s call them Detail, we want to have full width pages for the content.
Via the Elements settings, we can only choose the Main page to apply it to. But not to the Detail pages, as they are generated on the fly.
The page structure looks something like this:
/main/
/main/598854/
/main/349394/
(Where the numbers are the Detail page).
Is it possible to change it via a regex expression in functions.php somehow? So that a specific element template is only applied to them?