Using graphics for page titles
Using graphics for page titles
I want to use GIFs instead of text in the page Titles. How can I do this?
I have seen a nice module that transforms text input into a GIF, but I want to use styled titles, like the ones below instead of text.
http://susse.com.au/_siteres/images/head_01.gif
http://susse.com.au/_siteres/images/head_04.gif
etc...
Any thoughts?
Thanks
I have seen a nice module that transforms text input into a GIF, but I want to use styled titles, like the ones below instead of text.
http://susse.com.au/_siteres/images/head_01.gif
http://susse.com.au/_siteres/images/head_04.gif
etc...
Any thoughts?
Thanks
Re: Using graphics for page titles
Last edited by Nullig on Sat Jun 23, 2007 12:33 am, edited 1 time in total.
-
- Forum Members
- Posts: 126
- Joined: Sun Feb 26, 2006 7:10 pm
Re: Using graphics for page titles
sIFR is definitely the way to go. Very customizeable and the best solution (i think) for using the exact typeface you want.
Re: Using graphics for page titles
Thanks guys, interesting reading, but as you can see, we alread have the GIFs all set to go.
Anyway, our layout is too complex for sIFR to handle, and may include small illustrations down the track.
Anyway, our layout is too complex for sIFR to handle, and may include small illustrations down the track.
-
- Forum Members
- Posts: 126
- Joined: Sun Feb 26, 2006 7:10 pm
Re: Using graphics for page titles
so you want to you use one fo the various forms of image replacement.
try this
styles:
This is pretty basic and there may be a few caveats but doing a quick google search will yield a lot of information on image replacement.
Good luck
try this
Code: Select all
<h2 id="yourid">Page title</h2>
Code: Select all
#yourid {
text-indent: -9999px;
height: 30px; /* height of gif image */
width: 500px; /* width of your image */
background: url(images/yourimage.gif) no-repeat;
}
Good luck
Re: Using graphics for page titles
Hi climberusa,
Yes I think you're on the right track. We need to replace with something, then add the link to the GIF for each page in the Title field * because obviously each page has a diffrent title.
Yes I think you're on the right track. We need to replace
Code: Select all
<h2 id="yourid">Page title</h2>
Re: Using graphics for page titles
How bout...
if you really need the h2...
the {title} will give you a '.title of page' class to work with in the CSS so for Blog it might be...
.Blog {width:??; height:??; background: url(uloads/images/head 01.gif)}
But you can also use a div class="{title}" ...
this is so you don't get the 'empty h2 validation error'
if you really need the h2...
the {title} will give you a '.title of page' class to work with in the CSS so for Blog it might be...
.Blog {width:??; height:??; background: url(uloads/images/head 01.gif)}
But you can also use a div class="{title}" ...
this is so you don't get the 'empty h2 validation error'
Re: Using graphics for page titles
Thanks Mark. That's useful.
So in the Title field of each page we would add a link to the graphic title such as
or
Is that right?
So in the Title field of each page we would add a link to the graphic title such as
Code: Select all
<img src="http://susse.com.au/_siteres/images/head_01.gif" width="550" height="60" border="0" />
Code: Select all
http://susse.com.au/_siteres/images/head_01.gif
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Using graphics for page titles
I think what mark and others meant is that you would use the background attribute in css to specify a background image for each page, but it would be done in your stylesheet.
I wouldn't use {title} though, I'd use $page_alias
i.e:
and then, lets say your page alias was 'home'
you would then have (in one of your stylesheets, though I'd probably attach a separate stylesheet for this just for organizational purposes).
I wouldn't use {title} though, I'd use $page_alias
i.e:
Code: Select all
<h2 class="{$page_alias}"> </h2>
you would then have (in one of your stylesheets, though I'd probably attach a separate stylesheet for this just for organizational purposes).
Code: Select all
.home {
text-indent: -9999px;
height: 30px; /* height of gif image */
width: 500px; /* width of your image */
background: url(images/yourimage.gif) no-repeat
}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Forum Members
- Posts: 126
- Joined: Sun Feb 26, 2006 7:10 pm
Re: Using graphics for page titles
Here 's a solution I came up with last year for this very thing.
1. Create a seperate stylesheet (outside of cms) and call it headings.php
a. place this code into:
b. upload the headings.php file to your server. I created a css directory.
2. Create a user defined tag called h1_css (or whatever you want) and input this:
3. Create all of your gifs and make sure they correlate to your page alias' and place them into your desired folder.
4. Add a call to your user defined tag in you template:
5. Take the rest of the day off. (or come back here if it doesn't work:)
Here is the site that's using this:
www.greenacresusa.com
Jeff
1. Create a seperate stylesheet (outside of cms) and call it headings.php
a. place this code into:
Code: Select all
<?php
header('Content-type: text/css');
?>
h1 {
text-indent: -9999px;
height: 40px; /* height of image */
width: 400px; /* width of image */
background: url(/location/of/your/headings/h1_<?php echo $page ?>.gif) no-repeat; /*I named all the gif's like h1_page_alias */
}
2. Create a user defined tag called h1_css (or whatever you want) and input this:
Code: Select all
$p = $_GET['page'];
echo "<link rel=\"stylesheet\" href=\"/css/headings.php?page=$p\" type=\"text/css\" />";
4. Add a call to your user defined tag in you template:
Code: Select all
{h1_css}
Here is the site that's using this:
www.greenacresusa.com
Jeff
Re: Using graphics for page titles
climberusa you are a legend.
This worked like a dream. Fantastic. Thanks
Now. If only someone can make this CMS truly multilingual, and untangle Title, Heading and meta data for SEO, this will be the best CMS by far.
Cheers
This worked like a dream. Fantastic. Thanks
Now. If only someone can make this CMS truly multilingual, and untangle Title, Heading and meta data for SEO, this will be the best CMS by far.
Cheers
-
- Forum Members
- Posts: 126
- Joined: Sun Feb 26, 2006 7:10 pm
Re: Using graphics for page titles
Don't I have to die first to be a legend?
Re: Using graphics for page titles
No, you can be a live legend. It's an Aussie thing. Not that I'm an Australian, I just live down here. You can of course also be a legend in your own mind, but that's not what I meant.climberusa wrote: Don't I have to die first to be a legend?

Re: Using graphics for page titles
That would be me...Ulysses wrote: You can of course also be a legend in your own mind, but that's not what I meant.![]()

