DER PRiNZ
  • Home
  • Tutorials
    • Installation Guides
  • WP Themes
  • Purchase Themes
  • Services
  • Affiliates
  • Support Forum
  • Contact

Using Blog Title and Tagline instead of a Logo

Using Blog Title and Tagline instead of a Logo

29.04.2010 in Tutorials

By default PRiNZ Pro Themes use a graphical logo to display in the header of the blog or website. There might be reasons to use the blog title and tagline that are defined in the WordPress admin settings under Settings > General instead of a logo image and this tutorial shows you how easy this can be done. This tutorial is only for themes versions prior to 5.1 because in this version you can make these settings on the optionspage.

Some little Code Tweaks

Currently there is no setting in the optionspage to switch between logo and text-header. This might be integrated in future updates. So meanwhile we need to edit some lines of code. Don´t worry. It´s no rocket science. I suggest to start with deleting the logo image (make it invisible).

Make the Logo Image invisible

Open the file style.css which is the main CSS file. and look up line 248 (in BranfordMagazine). Either delete or set in comments to make it invisible (put /* before and */ after the line)

#branding {/*where the logo sits*/
        width:625px;
        height:100px;
        padding-bottom:15px;
        /*background:url(images/backgrounds/bg_branding.png) no-repeat;*/
        }

Make the Blog title and Tag Line visible

First you have to set a title and tagline in the WordPress admin under Settings > General. Then you open the file header.php and lookup line 82 and 85 (in BranfordMagazine).

 <div id="branding" class="left" onclick="location.href=’<?php echo get_settings(‘home’); ?>’;" style="cursor: pointer;">
    <div class="blogtitle" ><a href="<?php echo get_option(‘home’); ?>/">
      <?php //bloginfo(‘name’); ?>
      </a></div>
    <div class="description">
      <?php //bloginfo(‘description’); ?>
    </div>
  </div>

Remove the double slashes (//) in front of bloginfo('name'); and bloginfo('description'); to uncomment the php code and make it visible. It should look like this:

<div id="branding" class="left" onclick="location.href=’<?php echo get_settings(‘home’); ?>’;" style="cursor: pointer;">
    <div class="blogtitle" ><a href="<?php echo get_option(‘home’); ?>/">
      <?php bloginfo(‘name’); ?>
      </a></div>
    <div class="description">
      <?php bloginfo(‘description’); ?>
    </div>
  </div>

Of course you need to save the changed files and upload it to your server again. That´s all. Now your site displays the title of the blog and the tagline instead of an image in the header. The line numbers might be different if you use Wyntonmagazine or any other theme in the future but the code is pretty much the same.

Styling the Header

If you like to style the header text just open style.css again and change the folowing lines for the blog title:

.blogtitle, .blogtitle a {
        color: #000;
        font-size: 1.8em;
        font-family: Georgia, "Times New Roman", Times, serif;
        font-weight: regular;
        padding: 20px 0px 10px 0px;
        }

And for the description / tagline:

.description {
        font-size: 1.3em;
        font-weight: bold;
        color:#999;
        }

Further reading

  • Changing the Logo

Blogtitle, Image, Logo, Tagline

Shopping Cart

There are no items in your shopping cart.
Visit The Shop
Purchase Themes
Get outstanding WordPress Themes
Earn Money
Become an Affiliate Partner now

Recent Posts

Customizing the Background of PRiNZ Themes
02.09.2010 in Tutorials

Adding a custom Header to PRiNZ Themes
25.08.2010 in Tutorials

Web Amateur tries to damage my Reputation
30.06.2010 in News

SpiegelMagazine Step-by-Step Installation Guide
28.06.2010 in Installation Guides, Tutorials

WordPress magazine style theme “SpiegelMagazine PRO”
28.06.2010 in WP Themes

WordPress magazine style theme “SpiegelMagazine PRO” released
25.06.2010 in News

Downloading a Premium Theme from the Wrong Site can be Expensive
23.06.2010 in News

WordPress 3.0 is released an PRiNZ Pro Themes are updated
18.06.2010 in News

WyntonMagazine Step-by-Step Installation Guide
17.06.2010 in Installation Guides, Tutorials

Latest Themes Versions now available for Download
10.06.2010 in News

About me and this website

My name is Michael Oeser. I´m a self taught Webdesigner/-Developer from the Rhein-Main area in Germany with over 10 Years of experience in the internet world. Since three years I´m addicted to WordPress since to me it is by far the best content management system (CMS) and bloggingplattform available.

This website is all about WordPress themes that I offer to the public. Feel free to explore the site and find some usefull stuff. In order to reach a wider audience this site is written in English.

Check out my other website (German only) for information about my webdesign services and periodic WordPress tipps and tricks.

I prefer a non-formal adressing on this website. So for the German speaking audience use "Du" instead of "Sie".

Contact

  • Michael Oeser
  • Waldseestrasse 13
  • 63486 Bruchköbel
  • GERMANY
  • Send us an Email

Info

  • Roulette spielen

wordpress

© 2010 Michael Oeser at DER PRiNZ · Terms & Conditions