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?
Comment | File | Size | Author |
---|---|---|---|
#5 | change-site-name-color.1774534.5.patch | 152 bytes | hitvika_verma |
Comments
Comment #1
chawkins CreditAttribution: chawkins commentedSolved.
Comment #2
robalrr CreditAttribution: robalrr commentedI have these problem, could you tell how do you solve it?
Comment #3
drupal4u.org CreditAttribution: drupal4u.org commentedSite-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
}
Comment #4
martingoedbloed CreditAttribution: martingoedbloed commentedIf 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
Comment #5
hitvika_verma CreditAttribution: hitvika_verma commentedComment #6
hitvika_verma CreditAttribution: hitvika_verma commentedComment #8
kunalkapoor CreditAttribution: kunalkapoor at OpenSense Labs commentedComment #9
kunalkapoor CreditAttribution: kunalkapoor at OpenSense Labs commented