Eleven 40 Pro: Display Single Post Titles Before Content Sidebar Wrap

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:

default entry title position eleven 40 pro theme

After adding the single.php file & CSS code:

custom single.php file adds post title before content sidebar wrap

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.

Related Solutions

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.