[Support request] design template for multiple pages/posts

Home Forums Support [Support request] design template for multiple pages/posts

Home Forums Support design template for multiple pages/posts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #236418
    Petar

    Hello Tom

    New user as far as GP is concerned. Migrating from Headway. Looked through your knowledge base and the forum for relevant answer and could not find one. Quite probably simple.

    How does one create design templates that apply across multiple pages/post/custom post types? Eg different product types.

    Thanks.

    #236469
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You would use a child theme along with custom page templates: https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/

    For products/post types, you would do the same but the file name needs to be specific to the post type: https://codex.wordpress.org/Post_Type_Templates

    The starting point is to grab a GP template (page.php for example), copy it to your child theme and change the file name/add the page template tag at the top.

    Then you’re free to build your template.

    Let me know if you need more info 🙂

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