Friday, June 21, 2013

Wordpress 2012 child theme modifications reference

The 2012 theme out-of-the-box is a great place to start for theme development because you have an editable navigation bar, good typography, and a clean layout to start with.

These are my go-to child theme modifications to 2012 when setting up a static website for a client.

Disable automatic word hyphenation
Requires: CSS / style.css
WordPress › Support » How does one stop auto text hyphenation completely

Move the header image above the navigation bar.
Requires: PHP / header.php
Cut the PHP block of code (pictured below) that outputs the header image and paste it above the NAV element that creates the main navigation.



Remove the space above the header image
Requires: CSS / style.css
Add these two CSS styles to your custom stylesheet to remove the spacing above the header image and make it flush with the top of the browser window.



Change the default "Leave a comment" link text
Requires: HTML/PHP | content.php
Go to line 28 on content.php.  Find the leave a reply text on this line and replace it with your wording of choice.
Hide the H1 page title only on pages
Requires: CSS /  style.css
Add the following CSS to hide the page title heading only on pages.  We use this because we want to still have automatic titles display on our single blog posts.


No comments:

Post a Comment

Only comments in English will be considered. Thank you!