Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20671

    I have recently installed the Habitat theme and the first thing I did is change the Site title and Tagline via the Customize theme option, but it just won’t reflect on the site. It seems to be the Habitat default logo image.

    I have double checked it under Settings > General and it has definitely updated.

    Any suggestions on how to use these settings and not the logo?

    #108619

    Hi,

    Please add the CSS below to *the last line* of your /css/style1.css file

    #top .logo a, #top .logo a:hover {
    text-indent: initial !important;
    }
    #top .logobg a {
    background: initial !important;
    }

    If you need further assistance, just add my name to the tag list.

    Thanks,

    Nick

    #108620

    I tried also to show my blog title & description instead of the blog logo using something like :

    in the header.php

    but each time I got errratic position. The CSS given by Nick seems to be not working ;)

    #108621

    Hi,

    Sorry about that. I tested a new approach that is working.

    Please open up header.php and find lines 98-110 that look like

    ######################################################################
    if (isset($k_option['general']['logo']) && $k_option['general']['logo'] != '')
    {
    $logo = '<img class="ie6fix" src="'.$k_option['general']['logo'] .'" alt="'.get_settings('home').'" />';
    $logoclass = 'logoimg';
    }
    else // default logo
    {
    $logo = get_bloginfo('name');
    $logoclass = 'logobg2';
    }

    ######################################################################

    and in their place paste the code below.

    ######################################################################
    //if (isset($k_option['general']['logo']) && $k_option['general']['logo'] != '')
    //{
    // $logo = '<img class="ie6fix" src="'.$k_option['general']['logo'] .'" alt="'.get_settings('home').'" />';
    // $logoclass = 'logoimg';
    //}
    //else // default logo
    //{
    // $logo = get_bloginfo('name');
    // $logoclass = 'logobg2';
    //}

    ######################################################################

    Since you know the name of the site, it would be easier to hardcode it and save that extra couple of database connections every time any page in the website loads. now in the same file (header.php) find line 125 that looks like

    <h2 class="logo <?php echo $logoclass; ?>"><a class='ie6fix' href="<?php echo get_settings('home'); ?>/"><?php echo $logo; ?></a></h2>

    and replace it with the line below (just change $$$$$$$$ to whatever you want to show up as the title (no quotes needed.) Leave the html as is , unless you want the problems you said you had.

    <h1 class="logo logobg2"><a class='ie6fix' href="<?php echo get_settings('home'); ?>/">$$$$$$$</a></h1>

    Final step is to find line 93 in the same file (header.php) which looks llike

    </head>

    do not delete line 93, instead paste the code below *before line 93*

    <style>
    #top .logo a {
    text-indent: 1px !important;
    font-size:1.9em !important;
    font-weight:bold !important;
    color:red !important;
    }
    #top .logo a:hover {
    color:blue !important;
    }
    </style>

    I gave you a rollover, so you can change the color however you want, http://www.clipular.com/c?5715098=gtqTxtQ5txa4NyfniRyj3WFnTwQ&f=.png

    Thanks,

    Nick

    #108622

    Thanks, i will try this !

    #108623

    Alright. Good luck and enjoy the theme.

    Thanks,

    Nick

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Display Site Title and Tagline’ is closed to new replies.