Need to some help with some wordpress code

6 replies
Hi guys.

I'm messing around trying to modify a wordpress theme to suit my needs and I am kinda stuck at something.

For the header where the logo should be I have the standard site name and its in a custom style sheet, cus thats how the theme works.

.custom #logo a { color: #ffffff; font-family: "American Typewriter", "Trebuchet MS", Verdana, sans-serif; }

Now, how do I change this so that the site title disappears and I can add my logo?

Thank you
#code #wordpress
  • Profile picture of the author knowwow
    There are two ways to go about this. CSS or modifying your index.php file.
    PM me (or post here) your site's url and I will have a look at it.
    Signature

    - Chief Executive Philosopher

    {{ DiscussionBoard.errors[1640000].message }}
    • Profile picture of the author adamjthompson
      So you want to remove the blog name & description text from the header of your blog? Exactly how to do this will vary depending on the theme you use, but these instructions will work for most themes:

      If you open the header.php file (in your theme directory), you should see something like this:

      Code:
      <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
              <p><?php bloginfo('description'); ?></p>
      Delete either the entire piece of code, or just delete the parts you don't want to show.
      {{ DiscussionBoard.errors[1640043].message }}
  • Profile picture of the author knowwow
    He also wants to put in the logo there...
    Signature

    - Chief Executive Philosopher

    {{ DiscussionBoard.errors[1640058].message }}
    • Profile picture of the author adamjthompson
      Originally Posted by knowwow View Post

      He also wants to put in the logo there...
      Ooops, missed that. :p Yeh, could probably put the logo there and just tweak the css if needed to get it to display correctly.
      {{ DiscussionBoard.errors[1640119].message }}
  • Profile picture of the author Marian Berghes
    the header code is like this:

    <div id="logo">
    <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a>
    <?php if (is_home()) { ?>
    <h1><?php bloginfo('description'); ?></h1>
    <?php } else { ?>
    <p id="tagline"><?php bloginfo('description'); ?></p>
    <?php } ?>
    </div>

    if I erase this the whole header part dissapears not just that title text but the background also.

    Ill try abit more, if I cant get it ill pm one of you

    EDIT: Got it, thx for te help
    {{ DiscussionBoard.errors[1640135].message }}
    • Profile picture of the author adamjthompson
      Originally Posted by Marian Berghes View Post


      EDIT: Got it, thx for te help
      Yay! Glad to help.
      {{ DiscussionBoard.errors[1640253].message }}

Trending Topics