Freisians

We just love our freisian horses to pieces.

Holstein

Newest member of the holstein family.

Polled Herefords

Some of the finest polled herefords you’ll find in these parts of the country.

Angus

Some of the finest angus livestock you’ll find in these parts of the country.

.newpost

This post demonstrates the successful completion of adding new code within the post loop of the (book recommended) Twenty Twelve child theme index.php file; and hard coding the following CSS style rules into the Twenty Twelve child theme style.css file.

.newpost {
padding: 8px;
border: 2px solid darkgray;
border-radius: 10px;
background-color: lightyellow;
margin-bottom: 50px;
}

.newpost h1 a {
font-size: 2.5em;
color: red;
}

loop and css code successful results

2012 loop and css code successful results

Save

Delving into the Loop

This is was my first “newpost” after adding new code to the Twenty Sixteen child theme index.php file and then coding customized CSS styles to apply to the new class named .newpost. It was suppose to highlight the most recent news post on the page. (Classroom assignment to complete the exercise from the WordPress: The Missing Manual book.) As you can see from the image below I failed at getting it to work properly.

failed php loop and css attempt in 2016 theme

failed php loop and css attempt in 2016 theme