Is ther e a way ti fix this and how?

thank you

Comments

vm’s picture

hard to be specific without knowing what theme you are using.

search your themes style.css for .title to see if you can manage, or tell us your theme so someone can check it for you.

Chill35’s picture

Open your theme page.tpl.php template file in a text editor and go to the markup generated for the page title.
You will find page.tpl.php in your theme folder.

For Garland, go to line number 68. The original line of code is :

<?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>

Change that to :

<?php if ($title): print '<h1'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h1>'; endif; ?>

Then style your h1 headline appropriately.

If I were you, I would even add a class : page-title, and use it for styling.

<?php if ($title): print '<h1 class="page-title'. ($tabs ? ' with-tabs"' : '') .'>'. $title .'</h1>'; endif; ?>

Caroline
A coder's guide to file download in Drupal
Who am I | Where are we
11 heavens

brenda003’s picture

This can be done via your page.tpl.php or node.tpl.php file within your theme directory. If you mean the title of each node, look in node.tpl.php - keep in mind, though, that if you have a page listing of nodes (full or teaser) you'll have multiple h1s on your page.

Chill35’s picture

keep in mind, though, that if you have a page listing of nodes (full or teaser) you'll have multiple h1s on your page.

Brenda makes an excellent point!

I think that you meant the page title, and not node titles on a page where you have a list of nodes.

By the way, it really is a great idea to change the page title to h1 if you use a logo for your branding, that is, if you don't print the web site name in q=admin/build/themes/settings "Site name". That Site Name uses the h1 tag.

With the change you'll make, you'll have only one h1 on the page, and it's your page title, if you don't print the Site Name.

Note to self to change this for myself too, on my 11heavens site. My logo is my Site Name.

Caroline
A coder's guide to file download in Drupal
Who am I | Where are we
11 heavens

garfy - blocked for being foulmouthed and rude to others’s picture

thank you very much

it is a node title

i changed the page.tpl file

thank you