Site logo

Archived topic

Custom Templates

3 replies · Started by Matt on November 16, 2020

Viewing posts 1–4 of 4

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

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 :)

Great. Thank you.

No problem :)

This archived topic is closed to new replies.