SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member tomcromp's Avatar
    Join Date
    Nov 2003
    Location
    london
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Remove logo from Wordpress theme via code

    I would like to remove the theme logo from my template monster theme
    here is the code:
    PHP Code:
                        <div class="logo">                      <?php if(of_get_option('logo_type') == 'text_logo'){?>                        <?php if( is_front_page() || is_home() || is_404() ) { ?>                          <h1><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>                        <?php } else { ?>                          <h2><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h2>                        <?php ?>                      <?php } else { ?>                        <?php if(of_get_option('logo_url') != ''){ ?>                            <a href="<?php bloginfo('url'); ?>/" id="logo"><img src="<?php echo of_get_option('logo_url'"" ); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>                        <?php } else { ?>                            <a href="<?php bloginfo('url'); ?>/" id="logo"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>                        <?php ?>                      <?php }?>
    How do I remove the logo without messing up the theme if I delete it all it mess up, I have my logo built into my background image, and the default logo is covering it up. The only options in theme options are text logo or image logo, I don't want was as it's already in the background.


    Any help would be greatly appreciated
    Cheers
    tom

  2. #2
    SitePoint Addict WebMachine's Avatar
    Join Date
    Jun 2007
    Location
    Ontario, Canada
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know how this will affect the rest of your page, because you haven't provided the rest of the code, but have you tried hiding it using CSS? Add this to your stylesheet -
    Code:
    .logo { display: none; }

  3. #3
    Barefoot on the Moon! silver trophy
    Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,516
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Do you mean the login page logo?

    http://codex.wordpress.org/Customizing_the_Login_Form


    If it's the theme's logo, each theme/developer tends to do it slightly differently. You'll likely have to alter the header.php file if you can't disable or change it in the theme settings.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  4. #4
    SitePoint Addict
    Join Date
    Oct 2008
    Location
    Virtual World is my location
    Posts
    306
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    The theme would usually have an option to disable the logo. If that is not possible, remove the entire logo div from the header section (the code you have pasted in your query). If you would like to change the logo, in the themes folder > your theme > images you will find logo.png which you can change to the logo you want.

    If you want to completely remove your logo div part also make necessary changes to the other code or you will have a blank section where the logo is displayed.
    RecipesNext.com - recipes, kitchen queries, videos & more...
    BargainNext.com - coupons / deals / bargains / offers & more...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •