Difference between revisions of "Wordpress tweaks"

From Ever changing code
Jump to navigation Jump to search
(Created page with "If you would like to format the way your wordpress blog title is formatted in the header you need to edit header.php file. WordPress is pulling your title from the options men...")
 
Line 6: Line 6:


Of course you can format up to your imagination but remember you will not be able to edit the blog title from web menu anymore.
Of course you can format up to your imagination but remember you will not be able to edit the blog title from web menu anymore.
= Formatting =
Force a single line spacing inside preformatted text blocks
<pre> <pre style="line-height:1;"> </pre>

Revision as of 00:01, 25 February 2014

If you would like to format the way your wordpress blog title is formatted in the header you need to edit header.php file. WordPress is pulling your title from the options menu. You can just insert your title into the header manually and add a span tag around the first word so that you can customize the first and second words differently. You can do it directly from web interface:

  1. Go to menu, Apperance > Editor > click on Header (header.php) then edit
  2. Find <?php bloginfo('name'); ?>
  3. Replace with Cisco<span style="color: #008000;">Linux</span> to receive this result CiscoLinux

Of course you can format up to your imagination but remember you will not be able to edit the blog title from web menu anymore.

Formatting

Force a single line spacing inside preformatted text blocks

 <pre style="line-height:1;">