[Resolved] Set content width via Elements for specific page (Regex)

Home Forums Support [Resolved] Set content width via Elements for specific page (Regex)

Home Forums Support Set content width via Elements for specific page (Regex)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1677468
    YachtFocus

    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?

    #1677745
    Leo
    Staff
    Customer Support
    #1678283
    YachtFocus

    Thanks! That will help I think, we will look into it.

    #1679175
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.