I'm trying to change the site name color in danland theme in D7.

I've tried all sorts of solutions..... not exactly sure where to go with it now. My suspicion is that it would be controlled by css. The string for which is:
.site-name {
display: above;
font-weight: bold;
font-size: 30px;
margin-left: 15px;
position: relative;
font-family: Copperplate, Verdana, Tahoma;
font-style: normal;
}

I've tried adding: color: #ff8c00;
but it doesn't change anything. What gets me is that the stock site name in Danland is blue lettering that changes orange when you mouse over it, but I cannot find the code that makes that effect happen.

Anyone have a clue for me?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chawkins’s picture

Solved.

robalrr’s picture

I have these problem, could you tell how do you solve it?

drupal4u.org’s picture

Site-name is defined as link in page.tpl.php.

One way to control site-name is to modify line 18 and 22 of the page.tpl.php

Line 18 from

<h1 class="site-name"><a href="<?php print $base_path ?>" title="<?php print $site_name ?>"><?php print $site_name ?></a></h1>

to

<h1 class="site-name"><?php print $site_name ?></h1>

Line 22 from

<h2 class="site-name"><a href="<?php print $base_path ?>" title="<?php print $site_name ?>"><?php print $site_name ?></a></h2>

to

<h2 class="site-name"><?php print $site_name ?></h2>

Now you can control with

.site-name {
color: #xxxxxx
}

martingoedbloed’s picture

If you want to maintain the 'home' button functionality of the site-name, you can also add the following in danblog.css

.site-name a {
color : [hex color value];
}

nice place to put it is around line 48

hitvika_verma’s picture

Issue summary: View changes
FileSize
152 bytes
hitvika_verma’s picture

Status: Active » Needs review

kunalkapoor’s picture

Status: Needs review » Fixed
kunalkapoor’s picture

Status: Fixed » Closed (fixed)