BuilderChild-Remark

From IThemes Codex
Revision as of 01:03, March 4, 2013 by Sridhar (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

Remark is a fun, simple child theme designed with bloggers in mind and a perfect match for those that may want to set up a small Etsy-type shop.

Remark 2012-07-20 20-52-12.png

Live Demo

Blog entry announcing the release of Remark

How to set up homepage to look like demo site

1. Create Pages. This will help in setting up nav bar since Pages will be listed in the next step.

2. Go to Appearance -> Menus. Create a menu named say Main Menu having your desired items (Pages, Categories, custom links etc).

3. Create a layout named say, Home. Width = 960px.

Add modules in this order:

2012-07-20 21-09-30.png

Navigation Module

Select the menu created earlier in Navigation Type dropdown.

2012-07-20 21-11-19.png

Image Module

The image used in the demo site is 960 x 152.

2012-07-20 21-14-48.png

Content Module

Add a content module having a 320px wide right sidebar.

2012-07-20 21-30-10.png

Footer Module

2012-07-12 19-41-54.png

4. Visit your site's homepage and you should see the basic structure similar to that of demo site. Hover on Builder in the top WordPress bar and click on Manage Widgets for this Layout. Add your desired widgets in the Content Module's sidebar.

How to Add Date in the Author and Comments Line

Before:

Screen Shot 2013-03-04 at 11.19.05 AM.png

After:

Screen Shot 2013-03-04 at 11.18.26 AM.png

1. Edit Remark's index.php.

Change

<div class="entry-meta">
	<?php printf( __( 'Posted by %s', 'it-l10n-BuilderChild-Remark' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
</div>

to

<div class="entry-meta">
	<?php printf( __( 'Posted by %s on', 'it-l10n-BuilderChild-Remark' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
</div>

add the following below that:

<span 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-comma">,</span></span>
	<span class="year"><?php the_time( 'Y' ); ?></span>
</span>

2. Edit Remark's archive.php.

Replace

<div class="entry-meta">
	<?php printf( __( 'Posted by %s', 'it-l10n-BuilderChild-Remark' ), '<span class="meta-author">' . builder_get_author_link() . '</span>' ); ?>
	<?php do_action( 'builder_comments_popup_link', '<span class="meta-comments">· ', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Remark' ), __( '(0)', 'it-l10n-BuilderChild-Remark' ), __( '(1)', 'it-l10n-BuilderChild-Remark' ), __( '(%)', 'it-l10n-BuilderChild-Remark' ) ); ?>
</div>

with

<div class="entry-meta">
	<?php printf( __( 'Posted by %s on', 'it-l10n-BuilderChild-Remark' ), '<span class="meta-author">' . builder_get_author_link() . '</span>' ); ?>
	<?php //do_action( 'builder_comments_popup_link', '<span class="meta-comments">· ', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Remark' ), __( '(0)', 'it-l10n-BuilderChild-Remark' ), __( '(1)', 'it-l10n-BuilderChild-Remark' ), __( '(%)', 'it-l10n-BuilderChild-Remark' ) ); ?>
</div>

<span 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-comma">,</span></span>
	<span class="year"><?php the_time( 'Y' ); ?></span>
</span>

<div class="entry-meta">
	<?php do_action( 'builder_comments_popup_link', '<span class="meta-comments">· ', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Remark' ), __( '(0)', 'it-l10n-BuilderChild-Remark' ), __( '(1)', 'it-l10n-BuilderChild-Remark' ), __( '(%)', 'it-l10n-BuilderChild-Remark' ) ); ?>
</div>

3. Edit Remark's single.php.

Replace

<div class="entry-meta">
	<?php printf( __( 'Posted by %s', 'it-l10n-BuilderChild-Remark' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
</div>

with

<div class="entry-meta">
	<?php printf( __( 'Posted by %s on', 'it-l10n-BuilderChild-Remark' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
</div>

<span 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-comma">,</span></span>
	<span class="year"><?php the_time( 'Y' ); ?></span>
</span>
Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox