How do we seperate the H1 from the title

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
webrankings
New Member
New Member
Posts: 4
Joined: Wed Sep 24, 2008 10:01 am

How do we seperate the H1 from the title

Post by webrankings »

Hi Guys,

How can we seperate the h1 from the title in the cms? As at the moment giving a page title sets it for both.

Appreciate any help you can give.

Sorry if the answers out there somewhere. I have searched.
webrankings
New Member
New Member
Posts: 4
Joined: Wed Sep 24, 2008 10:01 am

Re: How do we seperate the H1 from the title

Post by webrankings »

Would something similar to this work?
http://forum.cmsmadesimple.org/index.ph ... 842.0.html

Is there a better option?
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: How do we seperate the H1 from the title

Post by Russ »

Change the template? Not sure I really understand the question?
webrankings
New Member
New Member
Posts: 4
Joined: Wed Sep 24, 2008 10:01 am

Re: How do we seperate the H1 from the title

Post by webrankings »

When we set the title the title tag and the H1 tag automatically appears as the same.

For seo and usability reasons we need to be able to set these individually.


So the Title tag needs to be:
xxx example a xxx example b yz
H1 Needs to be
xx example
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: How do we seperate the H1 from the title

Post by Russ »

Do you have an example page or a snippet from your template? I'm still not sure I understand your meaning?
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: How do we seperate the H1 from the title

Post by Nick Smart »

I've created an additional content area and used that within my h1 tag and the title elsewhere.

Code: Select all

...
	<title>{title} - {sitename}</title>
{metadata}
{stylesheet}
	</head>
	</__body>
...
<h1>{content block="Introduction"}</h1>
...
etc.
Is that what you're getting at?

Nick
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: How do we seperate the H1 from the title

Post by Russ »

OK Nick I'm still not sure I fathom what you are after...  but what are you setting for the {content block="Introduction"} this will reflect what is displayed in ...... obviously.

The {title} - {sitename} is pulled from the page title and the sitename. If the {content block="Introduction"}  sets these the same then they will be the same? Or am I missing something?

Perhaps show us your {content block="Introduction"} ?
webrankings
New Member
New Member
Posts: 4
Joined: Wed Sep 24, 2008 10:01 am

Re: How do we seperate the H1 from the title

Post by webrankings »

Cheers guys,

I think that was what we were after Nick.
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: How do we seperate the H1 from the title

Post by Nick Smart »

Russ wrote: OK Nick I'm still not sure I fathom what you are after...
Hi Russ,

I'm not after anything. I was just suggesting a solution that might help webrankings, which it seems to have done.

Nick
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: How do we seperate the H1 from the title

Post by Russ »

Sorry Nick, I think I must be seeing things... too long at the screen I think! Apologies.
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: How do we seperate the H1 from the title

Post by Nick Smart »

No need to apologise.

Nick
Post Reply

Return to “Developers Discussion”