<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Site title needs to be bigger (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Site title needs to be bigger
#1080
aelara (User)
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
Site title needs to be bigger 2 Years, 8 Months ago Karma: 0  
I have removed the logo that was in the top left hand corner and had it replaced by the site name. The only thing is, the text is too small for use as a title. I know I should probably be looking in the stylesheet, but which one changes the size?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1081
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Site title needs to be bigger 2 Years, 8 Months ago Karma: 9  
Hrm, you are right, there isn't a title class in the stylesheet.

So you can add one.

Assuming you have your title wrapped in an a href tag, this should work

Code:

.title a { position: absolute; top: 8px; left: 8px; font-size: 32px; font-family: monospace; font: bolder; color: #903090; }
Of course you'll probably want to tweak the top/left numbers, font size, style etc. Probably best to place this after the first "body" class ..
Code:

body { padding:0; ... } .title a { position: absolute; ... }
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/08/26 21:08 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1082
aelara (User)
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
Re:Site title needs to be bigger 2 Years, 8 Months ago Karma: 0  
Thanks. Tried that but didn't work, so I assume the title isn't wrapped in an "a href" tag. Where would I check, and if it isn't, is it easy enough to put it in a tag?
Sorry for the questions; my programming skills leave a lot to be desired.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1083
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Site title needs to be bigger 2 Years, 8 Months ago Karma: 9  
Take a look at /themes/X/header.php where X is teh name of the theme you are using


Near the top, you shoudl see ...
Code:

$html .= '"><td class="title" nowrap="nowrap" valign="bottom"><a href="'. $gl[BasePath].'/'.$index.'"'; if ($usesession == "yes"){$html .= "?". session_name() . "=" . session_id() . "";} $html .= " target=\"_top\"><img src=\"./themes/" . $theme . "/title.gif\" align=\"left\" width=\"200\" height=\"49\" "; $html .= "border=\"0\" "; $html .= "alt=\"" . $gl["SiteTitle"] . "\" title=\"" . $gl["SiteTitle"]; $html .= "\" /></a></td><td class=\"title\" align=\"right\" nowrap=\"nowrap\">&nbsp;";
Note the middle line that creates the IMG SRC tag, and has the height and width set If you've just replaced title.gif with a different image, correct the hieght and width to those of your new image, but, if you want text there... You'll need to edit a couple line
Code:

$html .= '"><td class="title" nowrap="nowrap" valign="bottom"><a href="'. $gl[BasePath].'/'.$index.'"'; if ($usesession == "yes"){$html .= "?". session_name() . "=" . session_id() . "";} $html .= " target=\"_top\">YOUR SITE NAME</a></td><td class=\"title\" align=\"right\" nowrap=\"nowrap\">&nbsp;";
the table cell that contains this link has the class="title" , so the previous style sheet entry I mentioned should work... providing you saved the style.css file into the theme directory you are using.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/08/27 12:23 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008