BuilderChild-Anchor

From IThemes Codex
(Difference between revisions)
Jump to: navigation, search
(Added a link under "How to set up Anchor so it looks like the demo site")
 
m
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
  
 
Follow [http://ithemes.com/forum/index.php?/topic/4955-question-about-anchor-theme/#p23068 this].
 
Follow [http://ithemes.com/forum/index.php?/topic/4955-question-about-anchor-theme/#p23068 this].
 +
 +
= How to fix dates in search results page =
 +
 +
[[File:Screen Shot 2012-01-15 at 11.13.08 PM.png|643px|thumb|none|Before]]
 +
 +
[[File:Screen Shot 2012-01-15 at 11.15.09 PM.png|647px|thumb|none|After]]
 +
 +
'''1.''' Copy/upload wp-content/themes/Builder/search.php to wp-content/themes/BuilderChild-Anchor
 +
 +
'''2.''' Edit wp-content/themes/BuilderChild-Anchor/search.php.
 +
 +
Change
 +
 +
<pre class="brush:php;">
 +
<div class="entry-meta date">
 +
<span class="weekday"><?php the_time( 'l' ); ?><span class="weekday-comma">,</span></span>
 +
<span class="month"><?php the_time( 'F' ); ?></span>
 +
<span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span>
 +
<span class="year"><?php the_time( 'Y' ); ?></span>
 +
</div>
 +
</pre>
 +
 +
to
 +
 +
<pre class="brush:php;">
 +
<div class="entry-meta date">
 +
<span class="month"><?php the_time( 'M' ); ?></span><br />
 +
<span class="day"><?php the_time( 'j' ); ?></span>
 +
</div>
 +
</pre>
 +
 +
= Entry 3 =
 +
 +
= Entry 4 =

Latest revision as of 11:47, January 15, 2012

Contents

How to set up Anchor so it looks like the demo site

Follow this.

How to fix dates in search results page

Before
After

1. Copy/upload wp-content/themes/Builder/search.php to wp-content/themes/BuilderChild-Anchor

2. Edit wp-content/themes/BuilderChild-Anchor/search.php.

Change

<div class="entry-meta date">
									<span class="weekday"><?php the_time( 'l' ); ?><span class="weekday-comma">,</span></span>
									<span class="month"><?php the_time( 'F' ); ?></span>
									<span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span>
									<span class="year"><?php the_time( 'Y' ); ?></span>
								</div>

to

<div class="entry-meta date">
									<span class="month"><?php the_time( 'M' ); ?></span><br />
									<span class="day"><?php the_time( 'j' ); ?></span>
								</div>

Entry 3

Entry 4

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox