BuilderChild-Adept

(Difference between revisions)
Jump to: navigation, search
(Font used in demo site's header image)
m (How to make text appear for site title)
(2 intermediate revisions by one user not shown)
Line 3: Line 3:
 
== How to make text appear for site title ==
 
== How to make text appear for site title ==
  
Adept's style.css sets a image (images/logo.png) as background for site title (.builder-module-header .site-title). If you would like to have your site's title or your custom own text appear instead of the image, add the following at the end of child theme's style.css:
+
Adept's style.css sets a image (images/logo.png) as background for site title (.builder-module-header .site-title). If you would like to have your site's title appear instead of the image, add the following at the end of child theme's style.css:
  
 
<pre class="brush:css;">
 
<pre class="brush:css;">
Line 30: Line 30:
 
The font used in Adept demo site's [http://demos.ithemes.com/adept/wp-content/themes/BuilderChild-Adept/images/logo.png header], '''Liberator''' can be downloaded from [http://losttype.com/font/?name=liberator here].
 
The font used in Adept demo site's [http://demos.ithemes.com/adept/wp-content/themes/BuilderChild-Adept/images/logo.png header], '''Liberator''' can be downloaded from [http://losttype.com/font/?name=liberator here].
  
== Item 3 ==
+
== How to add show number of comments below post title ==
 +
 
 +
[[File:Screen Shot 2012-06-18 at 8.04.16 PM.png|699px|thumb|none|Before]]
 +
 
 +
[[File:Screen Shot 2012-06-18 at 8.06.28 PM.png|697px|thumb|none|After]]
 +
 
 +
'''1.''' Edit child theme's <code>content.php</code>.
 +
 
 +
Add
 +
 
 +
<pre class="brush:php;">
 +
<?php edit_post_link( 'Edit', ' <span class="">&middot; ', '</span>' ); ?>
 +
<?php do_action( 'builder_comments_popup_link', '<span class="comments right">', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Adept' ), __( '(0)', 'it-l10n-BuilderChild-Adept' ), __( '(1)', 'it-l10n-BuilderChild-Adept' ), __( '(%)', 'it-l10n-BuilderChild-Adept' ) ); ?>
 +
</pre>
 +
 
 +
below
 +
 
 +
<pre class="brush:php;">
 +
<?php printf( __( 'by %s', 'it-l10n-BuilderChild-Adept' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
 +
</pre>
 +
 
 +
The first line in the code being added causes a Edit link to appear. If you do not wish to have it, do not add that line.
 +
 
 +
'''2.''' Repeat the above in <code>content-single.php</code>.
  
 
== Item 4 ==
 
== Item 4 ==

Revision as of 00:04, August 16, 2012

Builder child theme Adept Live Demo

Contents

How to make text appear for site title

Adept's style.css sets a image (images/logo.png) as background for site title (.builder-module-header .site-title). If you would like to have your site's title appear instead of the image, add the following at the end of child theme's style.css:

.builder-module-header .site-title {
    background: none;
    text-indent: 0;
    width: auto;
    height: auto;
    font-size: 2.3em;
    margin-bottom: 10px;
}

.site-tagline {
    margin-left: 5px;
}

Sample before and after:

Before
After

Font used in demo site's header image

The font used in Adept demo site's header, Liberator can be downloaded from here.

How to add show number of comments below post title

Before
After

1. Edit child theme's content.php.

Add

<?php edit_post_link( 'Edit', ' <span class="">· ', '</span>' ); ?>
								<?php do_action( 'builder_comments_popup_link', '<span class="comments right">', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Adept' ), __( '(0)', 'it-l10n-BuilderChild-Adept' ), __( '(1)', 'it-l10n-BuilderChild-Adept' ), __( '(%)', 'it-l10n-BuilderChild-Adept' ) ); ?>

below

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

The first line in the code being added causes a Edit link to appear. If you do not wish to have it, do not add that line.

2. Repeat the above in content-single.php.

Item 4

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox