We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Title.; Dunno if itll be hard or not.
Topic Started: May 23 2005, 08:25 PM (297 Views)
solinent
Member Avatar
Member
[ *  *  * ]
Yeah, well since I don't have the time(or patience) to update ALL then headers on my site(meaning things between <h1> tags) I want to do something with them.

I have a templated header, so the things between the two <title> tags are allwasy the exact same. Now, I want to make them different.

I need to figure out what is inbetween the <h2> tags(the first ones on the page...
and i need to write it into the header.

So if I went to the page "guides" and the first <h2> tag was like this: <h2>Guides</h2> I want the title header to be (websitename) :: Guides

Is that possible? Also, if it can be done with a server-side script(preferably asp). Thanks for your help!
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Dunno if it can be done serverside.
Think you should just use external CSS.
w3schools there CSS tutorial tells you how to do that in one of the first pages.
Offline Profile Quote Post Goto Top
 
solinent
Member Avatar
Member
[ *  *  * ]
What do you mean? I know how to use external css, but what's that gotta do with it?
Offline Profile Quote Post Goto Top
 
Dennis
Member Avatar
Member
[ *  *  *  *  *  *  * ]
Here is how I do it:

Create a config.php file, and add this to it:

Quote:
 
<?php

define("SITE_NAME","(SITE NAME HERE");

?>


Then, at the top of each page, add this:

Quote:
 
<?php

require('config.php');

?>


Then, in the
Code: HTML
 
<TITLE>
section of the page, add this:

Quote:
 
<TITLE><?php echo SITE_NAME; ?> :: Guides</TITLE>


Just repeat that for each page. That's how I do it.
Offline Profile Quote Post Goto Top
 
solinent
Member Avatar
Member
[ *  *  * ]
sry even though php is installed, all my pages are asp :(
(and i have a template.look below)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply