[Resolved] Custom Templates

Home Forums Support [Resolved] Custom Templates

Home Forums Support Custom Templates

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1533276
    Matt

    Hi Guys,

    I just had a question around the best way to implement a custom template within Generatepress. As there are many options to get custom content into a page (elements – hook, custom gutenberg block, custom page template, custom shortcode) I was just hoping for a bit of expert advise on the best approach within Generatepress.

    I am wanting a page template that has the same header and footer as all pages but will include a custom datatable in the page content. I will be generating this table’s data and the markup with php in a child theme (or plugin) and do require other elements within the_content() section, such as page title, text, buttons etc.

    I’m not sure I understand the full power of elements yet, so not sure if it is the way to go, or one of the other options I mentioned above might be the ‘best’ option in generatepress.

    Thanks

    #1533846
    Leo
    Staff
    Customer Support

    Hi there,

    Hooks/elements shouldn’t be the way to go in this case – they are more meant for adding HTML content through the hooks available in the theme.

    The traditional way of using a child theme should be the way to go.

    Let me know if this helps ๐Ÿ™‚

    #1534544
    Matt

    Great. Thank you.

    #1535027
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.