This tutorial provides a single.php file which removes the entry titles on single posts and displays them before the content sidebar wrap.
Here’s the before and after screenshots:
After adding the single.php file & CSS code:
Installing The Code
The PHP Code: Please copy ALL the PHP code from the view raw link in the Gist and paste it into a new file named single.php using a text editor like Notepad++.
The CSS code: Change the CSS around Line 912 in your child themes style.css file so its exactly the same as whats in the Gist labelled style.css.
Otherwise, you can simply paste all of the CSS at the end of your style sheet.
Note: You can also copy this file and rename it to page.php if you want your single page titles to also display before your content sidebar wrap.
Leave a Reply