BuilderChild-Classen
From IThemes Codex
(Difference between revisions)
(Added = How to fix distortion of featured image in single posts =) |
m (→How to remove the left box and put the Date, Author etc at the bottom of the post in text) |
||
| (One intermediate revision by one user not shown) | |||
| Line 3: | Line 3: | ||
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 index.php, archive.php and single.php. Move meta info to your desired location in these template files. | ||
| − | [http:// | + | [http://cl.ly/1w1l1j2d0v1M2B3e3D1y Sample modified index.php] |
Edit child theme's style.css to set display of ".leftmetabox" to none. | Edit child theme's style.css to set display of ".leftmetabox" to none. | ||
| Line 28: | Line 28: | ||
<pre class="brush:php;"> | <pre class="brush:php;"> | ||
| − | <?php the_post_thumbnail( 'front-page-thumbnail' ); ?> | + | <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> | ||
| Line 34: | Line 36: | ||
<pre class="brush:php;"> | <pre class="brush:php;"> | ||
| − | <?php the_post_thumbnail( 'left-meta-thumbnail' ); ?> | + | <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> | </pre> | ||
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>

