Category Archives: Child Themes

3) Post Formats

post formats

wp-content/themes/twentyten/functions.php
add_theme_support( ‘post-formats’, array( ‘aside’, ‘gallery’ ) );

wp-content/themes/twentyeleven/functions.php
add_theme_support( ‘post-formats’, array( ‘aside’, ‘link’, ‘gallery’, ‘status’, ‘quote’, ‘image’ ) );

wp-content/themes/twentytwelve/functions.php
add_theme_support( ‘post-formats’, array( ‘aside’, ‘image’, ‘link’, ‘quote’, ‘status’ ) );

wp-content/themes/twentythirteen/functions.php
add_theme_support( ‘post-formats’, array( ‘aside’, ‘audio’, ‘chat’, ‘gallery’, ‘image’, ‘link’, ‘quote’, ‘status’, ‘video’ ) );

wp-content/themes/twentyfourteen/functions.php
add_theme_support( ‘post-formats’, array( ‘aside’, ‘image’, ‘video’, ‘audio’, ‘quote’, ‘link’, ‘gallery’, ) );

wp-content/themes/twentyfifteen/functions.php
add_theme_support( ‘post-formats’, array( ‘aside’, ‘image’, ‘video’, ‘quote’, ‘link’, ‘gallery’, ‘status’, ‘audio’, ‘chat’ ) );

virgin.zapmap.com

7) CSS Rule Structure

Rules defined in CSS file

Declarations grouped within a block:

selector {
     property: value;
     property: value;
     }

Element selector:
ul { padding-left: 5em; }

Selectors grouped within a rule:
ol, ul { margin-left: 5em; }

Class selector:
.entry-content { background-color: #c0c; }

Combination of element and class:
span.warning { font-weight: bold; }

ID selector:
#blog_title { font-size: 17px; }

Element within a class:

 .entry-content ol {
     background-color: #cc0;
     padding-left: 5em;
     }

Group combination & comment:
ol, ul { margin: 16px 0; padding: 0 0 0 40px; }  /* top, right, bottom, left */

Inline syle:
<div style=”font-weight:bold; color:red”>content.php</div>

 

BTW (off topic):

en.wikipedia.org/wiki/Indent_style#Ratliff_style

en.wikipedia.org/wiki/Em_(typography)