Site logo

[Resolved] Is it possible to define GeneratePress Elements in PHP templates?

Home Forums Support [Resolved] Is it possible to define GeneratePress Elements in PHP templates?

Home Forums Support Is it possible to define GeneratePress Elements in PHP templates?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2419592
    Eugene

    Hi David

    I have a multisite and would like to network activate GeneratePress and have Elements be defined and enabled in PHP so it shows on every site.

    I’m thinking to do this in PHP templates. So my question is: Is there a way in which Elements can be defined in PHP or something similar than acf-json? https://www.advancedcustomfields.com/resources/local-json/

    This works great for version control and can scale to many sites in the multisite

    Any ideas would be appreciated!

    #2421264
    David
    Staff
    Customer Support

    Hi there,

    just so i am clear, you want to create GP Elements and have them accessible across all sites in the Multisite ?

    #2421326
    Eugene

    That’s correct.

    Then, if changes are made then the change span across all sites, for example: Changing from sidebar layout to fullwidth

    #2423869
    David
    Staff
    Customer Support

    Although it is possible the get posts from the main blog and display them across a multisite, the display rule logic in Elements wouldn’t work across multiple sites, so unfortunately it is not possible.

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