• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Landing page template for post

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Landing page template for post

This topic is: resolved

Tagged: landing page, post template, single post

  • This topic has 7 replies, 3 voices, and was last updated 4 years, 1 month ago by Chuck.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 3, 2019 at 5:54 pm #489268
    rogerp
    Participant

    I have a post that I would like to use the landing page template on, which I am not able to set as it looks like you can only do it on pages.

    Is this true? Is there any way to apply the landing page template to a post

    Using the Smart Passive Income Theme

    Thanks


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

    https://www.rogerperkin.co.uk/network-automation/ansible/network-automation-training/
    February 3, 2019 at 6:37 pm #489270
    Chuck
    Member

    You should be able to setup template file for a post type. Here is a gist which may help:

    Also look at the WordPress Template Heirarchy in the Codex.


    Chuck Smith
    Twitter: @polishedwp

    February 3, 2019 at 10:33 pm #489275
    Brad Dalton
    Participant

    Add a template header like this example :

    // Template Name: Any Post Type Template
    // Template Post Type: post, page, portfolio
    

    Tutorial


    Tutorials for StudioPress Themes.

    February 4, 2019 at 2:57 am #489281
    rogerp
    Participant

    Thanks Brad,

    Have added that file, and now get the post attributes / template option in my post, but not exactly clear on how you get to select landing page template?

    As the options now are default template or any-post-type template


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

    February 4, 2019 at 3:50 am #489283
    Brad Dalton
    Participant

    Just add the template header to a copy of the landing page template.


    Tutorials for StudioPress Themes.

    February 5, 2019 at 2:58 pm #489315
    rogerp
    Participant

    Thanks Brad, it's working but I have a mucked up landing page template?

    It is hard left instead of centered? It's same for pages or posts so must have some CSS error somewhere styling it like that.

    https://www.rogerperkin.co.uk/uncategorized/sales-page-test/


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

    February 6, 2019 at 5:00 am #489337
    rogerp
    Participant

    All seems to be looking good now, I had some CSS caching issues I think as looked on another machine and all is centred.

    Question - how do I force users how have my css file cached to get new one?

    Or is this out of my control and could be a long time?


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

    February 6, 2019 at 5:11 am #489338
    Chuck
    Member

    The easiest way is with theme versioning. There is a good lab at KnowtheCode which explains the process. The first video is free and gives you the basic idea.

    Genesis Version – Ensure Your Latest Changes Go Out to the Browser

    Chuck Smith


    Chuck Smith
    Twitter: @polishedwp

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Landing page template for post’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble