• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Load Custom Single Post Template For Specific Post Format in Genesis

This tutorial enables you to change the standard single post template when using a specific post format in Genesis.

This example assumes you’ve selected the gallery post format and load a different template which you upload to your child themes root directory.

post-formats

There’s 2 steps involved:

If your theme doesn’t already include posts formats, see this post about about how to add them in Genesis first.

Once you’ve confirmed your theme includes post formats, you can then follow these 2 simple steps.

1. Firstly, paste the following PHP code at the end of your child themes functions.php file:

Register for full access

Reader Interactions

Comments

  1. Aimee Devlin says

    March 31, 2017 at 1:15 am

    Hi Brad! The code in step 2 is missing. Cheers!

    Log in to Reply
    • Brad Dalton says

      March 31, 2017 at 1:33 am

      Updated. 8 year old bug in WordPress which i reported 2 years ago. Can’t use a opening php tag in the WordPress editor even if you wrap it in code or pre tags. Thanks for letting me know. I added the code to a Gist and will let them host it.

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.