BuilderChild-Classen
From IThemes Codex
(Difference between revisions)
(Added "How to simplify author and date info in left metabox") |
m (→How to remove the left box and put the Date, Author etc at the bottom of the post in text) |
||
| (5 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | = How to | + | = How to remove the left box and put the Date, Author etc at the bottom of the post in text = |
| − | + | Edit child theme's index.php, archive.php and single.php. Move meta info to your desired location in these template files. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | [http://cl.ly/1w1l1j2d0v1M2B3e3D1y Sample modified index.php] | |
| − | + | Edit child theme's style.css to set display of ".leftmetabox" to none. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | [http://d.pr/LaNq Sample CSS added at end of style.css] | |
| − | + | The sample code above results in changing | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | [[File:Classen-metainfo-before2.png]] | |
| − | + | to | |
| − | + | [[File:Classen-metainfo-after2.png]] | |
| − | . | + | |
| − | + | ||
| − | + | ||
| − | . | + | = How to fix distortion of featured image in single posts = |
| − | + | ||
| − | + | [[File:Classen-single-featured-image-before.png|500px|thumb|none|Before]] [[File:Classen-single-featured-image-after.png|500px|thumb|none|After]] | |
| − | + | ||
| − | + | Note: This applies to Classen 2.0.0 to 2.0.2. | |
| − | + | ||
| + | Edit wp-content/themes/BuilderChild-Classen/single.php. | ||
| + | |||
| + | Change | ||
| + | |||
| + | <pre class="brush:php;"> | ||
| + | <div class="front-page-thumbnail"> | ||
| + | <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'front-page-thumbnail' ); ?></a> | ||
| + | </div> | ||
</pre> | </pre> | ||
| − | = | + | to |
| + | |||
| + | <pre class="brush:php;"> | ||
| + | <div class="left-meta-thumbnail"> | ||
| + | <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'left-meta-thumbnail' ); ?></a> | ||
| + | </div> | ||
| + | </pre> | ||
= Item 3 = | = Item 3 = | ||
= Item 4 = | = Item 4 = | ||
Latest revision as of 08:37, December 15, 2011
Contents |
How to remove the left box and put the Date, Author etc at the bottom of the post in text
Edit child theme's index.php, archive.php and single.php. Move meta info to your desired location in these template files.
Edit child theme's style.css to set display of ".leftmetabox" to none.
Sample CSS added at end of style.css
The sample code above results in changing
to
How to fix distortion of featured image in single posts
Note: This applies to Classen 2.0.0 to 2.0.2.
Edit wp-content/themes/BuilderChild-Classen/single.php.
Change
<div class="front-page-thumbnail"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'front-page-thumbnail' ); ?></a> </div>
to
<div class="left-meta-thumbnail"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'left-meta-thumbnail' ); ?></a> </div>

