HowTo: Adding sitename and site-description to language-files

1 view
Skip to first unread message

Johannes

unread,
Jun 9, 2009, 2:27:44 PM6/9/09
to openmicroblogger
arifinez asked in the omb discussion if it is possible to add site-
description and site-name to the language-files (http://
openmicroblogger.org/discuss/?posts/471)

If you are using default P2-Theme edit /wp-content/themes/p2/
header.php.

Look for this:

<div id="header">
<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 change to:

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

Now you have to add:

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

to
/wp-content/language/eng.php
/wp-content/language/ger.php


But beware: On every update this will be overwritten by default.
Brian has to say if it's possible and expedient to add this to the
lang-files by default.
Reply all
Reply to author
Forward
0 new messages