BuilderChild-Classen

(Difference between revisions)
Jump to: navigation, search
(Added = How to fix distortion of featured image in single posts =)
(How to fix distortion of featured image in single posts)
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>
  

Revision as of 03:28, October 12, 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.

Sample modified index.php

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

Classen-metainfo-before2.png

to

Classen-metainfo-after2.png

How to fix distortion of featured image in single posts

Before
After

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>

Item 3

Item 4

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox