I'm currently working on mercurymarketingmanagementconsultants.com and am having a heck of a time with the logo, and it appears to be the "Colourise" theme. I uploaded a custom logo under global settings, but it didn't show up. The option isn't even available when I try to configure the Colourise theme. I could switch out my logo for the theme's default, but I wouldn't have a link back to the home page and my new header is way too small and leaves a gap.

Would anyone have an idea of any other options? I'd change the custom css file regarding the logo but I'm not sure where to start.

Comments

mikey_p’s picture

Project: Theme Settings » Colourise
Component: User interface » Miscellaneous
Sungsit’s picture

Hi There,

At the moment, Colourise doesn't offer logo feature but you can add some more features into its dot-info file - colourise.info, like this one.

features[] = logo

And then you need to add some snippets to your template for rendering your logo. Example, add this below to your page.tpl.php file.

<?php if ($logo): ?>
  <a id="logo" href="<?php print check_url($front_page) ?>" title="<?php print t('Home') ?>">
    <img src="<?php print $logo ?>" alt="<?php print t('Site Logo')?>" />
  </a>
<?php endif; ?>

And finally, it's your CSS time.

promet’s picture

Hello gibbozer,

I've followed the steps you've outlined here, but am unsure by what you mean by "And finally, it's your CSS time". Could you give a little more detail about what CSS element might need to be adjusted to allow this to work?

I have manually replaced the file "sites/my-domain/files/colourise_logo.jpg", which is what Firebug refers to as the Logo image location, as per (in my case):

img alt="Site Logo" src="/sites/evilrobotnews.com/files/colourise_logo.jpg"/

Yet the standard "Rainbow Dashes" image persists, which I have manually removed. Is there another location where this default image resides. Are you aware of something I'm missing?

Also, I stuck the recommended PHP code into "page.tpl.php" in, what seemed to me, a non-disruptive spot, but is there a preference as to where in that file it should be inserted specifically, as I suppose that could be an issue too?

As always, thanks for your time,
promet

Sungsit’s picture

Hi promet,

From above guideline you need to exactly name your logo with logo.png and make sure you place it into colourise theme folder because <?php print $logo ?> needs that name and path. If you can see your new logo then it's time to adjust your style.

And remember to refresh your browser (F5) any time you made change to CSS.

kompressaur’s picture

Hi gibbozer. Ive followed the steps you mentioned in #2 and it works well. Im having a few probs trying to place the logo where the sitename was (ive omitted the sitename from the pagefile and replaced it with your logo php) Im presuming i have to change this

#site-name a {
  position: absolute;
  top: 90px;
  left: 0; /* LTR */
  color: #fff;
}

would i just change it to...

#logo a {
  position: absolute;
  top: 90px;
  left: 0; /* LTR */
}

if so it doesnt see to be working for me. thanks

macabu’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » macabu
Priority: Normal » Critical

Hello Gibbozer, you seem to be quite a nice dude, you give us a nicely ported theme, you even take out time to document how we can add our custom logo, but for one inexplicable reason you refuse to put the icing on the cake by answering just one final question that the last two posts ask for, how do we simply edit the css, so that the logo can nicely centralize at the spot where the site name is or how come when we decide to go manual and remove and replace the background image with our custom logo, why does is still show the same old colorful curtain. C'mon you'r leaving one high and dry. If you knew you won't simply support this why bother to lead us on, only to go quite and refuse to give one the css augmentation detail, because I can see my logo but do not how to centralize it; unless you don't know what to do next yourself, of which I seriously doubt cos' you know what to do. Pleeeeaaaaaase kindly answer one, thanks for a prompt response.

kavitasingh’s picture

Macabu can u help with the logo? It refuses to appear - have pasted logo.png in the folders as suggested

rickupdegrove’s picture

Hello everybody,

I followed this exactly what it does it provide a handy file upload at:
yoursite-name.com/admin/build/themes/settings/colourise

However, after you do the above steps you must "clear your cache".

I use one of two ways depending on the situation.

a.) If you know what drush is and use then use this command:

[rickup@localhost ~]$ sudo drush -yv updatedb  

b.) browse to yoursite-name.com/admin/settings/performance
Click the button [Clear cached data]

"And (now) finally, it's your CSS time."

This answer to this is really beyond the scope of this question because your unique situation, logo size, relation to any new block regions etc.

p.s. gibbozer Thanks for the awesome theme

yashadev’s picture

Status: Active » Closed (works as designed)