public
Description: implements the complete openmicroblogging.org spec, uses wp-themes and wp-plugins, RESTful mvc back-end
Home | Edit | New

HowTos

Replacing the header-text by an image

By default site-name and site-description is set in /app/config/config.yml.

If you want to replace site-name and site-description by an image follow this instruction:

If you are using P2-Theme (default), you have to edit
/wp-content/themes/p2/header.php

Search for:

<div class="sleeve"> 
<h1><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ? ></a></h1> 
<?php if(get_bloginfo('description')) : ?><small><?php bloginfo ( 'description' ); ?></small><?php endif; ?> 
</div>

and replace with:

<div class="sleeve">
<a href="<?php bloginfo( 'url' ); ?>"><img src="http://yourdomain.com/wp-content/themes/p2/i/logo.png" alt="Your-Site-Name" width="your-image-width" height="your-image-height" /></a>
</div>

You have to customize the link so that it fits to your site/image.
Example:

<img src="http://openmicroblogger.org/wp-content/themes/p2/i/logo.png" alt="Openmicroblogger" width="150" height="80" />

Add your image-file to folder /wp-content/themes/p2/i/

Beware: On every update this will be overwritten by default.

Adding sitename and site-description to language-files

By default site-name and site-description is set in /app/config/config.yml.

If you want to add site-name and site-description to your language-files, you have to edit some files.
If you are using P2-Theme (default), you have to edit
/wp-content/themes/p2/header.php

Search for:

<div class="sleeve"> 
<h1><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ? ></a></h1> 
<?php if(get_bloginfo('description')) : ?><small><?php bloginfo ( 'description' ); ?></small><?php endif; ?> 
</div>

And replace with:

<div class="sleeve"> 
<h1><a href="<?php bloginfo( 'url' ); ?>"><?php echo $txt ['header_sitename']; ?></a></h1> 
<small><?php echo $txt['header_sitedescription']; ?></small> 
</div>

Add this two lines

$txt['header_sitename'] = "Your Sitename"; 
$txt['header_sitedescription'] = "Your Sitedescription";

to the language-files

/wp-content/language/eng.php

/wp-content/language/ger.php

Beware: On every update this will be overwritten by default.

Last edited by Shen, Sat Jun 13 09:18:53 -0700 2009
Home | Edit | New
Versions: