Single.php Post Template File For Genesis

You can use conditional tags to modify the default output of single posts via a custom function in your functions file.

If you’re more comfortable with template files or simply want to try something different, you can simply create a new file named single.php

Code Installation

  1. Using a code editor like Notepad++, create a new file named single.php
  2. Click the view raw link in the Gits labelled single.php and copy & paste the code into your new file.
  3. Upload the file to the root directory of your child theme.
  4. Add the CSS code from the Gist labelled style.css to the end of your child themes style.ccs file and add your own declarations.

Once you’ve uploaded your new single post file, you can paste in PHP code for add_actions and remove_actions to customize your single posts.

You’ll find a list of all the Code Snippets on the StudioPress resources page for members.

Go to StudioPress > Forums > Resources > Code Snippets.

Related Templates

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.