Make Article Titles H1

adan
57 Posts
adan posted this 21 November 2016

How can i make my article or post titles H1 instead of the default h2

How can i make my article or post titles H1 instead of the default h2
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 22 November 2016

Hi,

That is not possible in the application. You can try to manually edit the code of the exported theme. But note that it will be changed to the default one each time you case the theme.

Sincerely,
Hella

Hi, That is not possible in the application. You can try to manually edit the code of the exported theme. But note that it will be changed to the default one each time you case the theme. Sincerely, Hella
adan
57 Posts
adan posted this 22 November 2016

Ok.. Please let me know which code to change to have this effect

Ok.. Please let me know which code to change to have this effect
Support Team
Support Team posted this 23 November 2016

Hello Fancis,
use file manager to search in theme folder for the "h2" substring.
Several files will be found with code lines:

<h2 class=" bd-container-15 bd-tagstyles"><?php echo $pageHeading; ?></h2>

replace h2 to h1 there.

regards,
Aileen

Hello Fancis, use file manager to search in theme folder for the "h2" substring. Several files will be found with code lines: <h2 class=" bd-container-15 bd-tagstyles"><?php echo $pageHeading; ?></h2> replace h2 to h1 there. regards, Aileen
adan
57 Posts
adan posted this 6 days ago

Exactly which folder/file should i be editing. Kindly point me to the file.

Exactly which folder/file should i be editing. Kindly point me to the file.
Support Team
Support Team posted this 5 days ago

Hi,

As mentioned in the previous reply there are will be a few files for different templates, for example \html\com_content\article\default-template.php file. The exact file depends on where exactly you want to change the heading because Post Header control is used on all templates including Blog. This is one of the reasons why Themler uses h2 for this control instead on h1. If we change it h1 the Blog pages will have several h1 tags.
In addition to this you can try Page Title control (insert tab >> More) and Posts blog title which outputs Joomla page heading as H1:

joomla-page-heading.png

Thank you,
Olivia

Hi, As mentioned in the previous reply there are will be a few files for different templates, for example `\html\com_content\article\default-template.php` file. The exact file depends on where exactly you want to change the heading because Post Header control is used on all templates including Blog. This is one of the reasons why Themler uses h2 for this control instead on h1. If we change it h1 the Blog pages will have several h1 tags. In addition to this you can try Page Title control (insert tab >> More) and Posts blog title which outputs Joomla page heading as H1: !joomla-page-heading.png! Thank you, Olivia
DaveOzric
610 Posts
DaveOzric posted this 5 days ago

Hello, so technically speaking from a SEO perspective the Post template should be changed to an H1 as all pages should have a H1 tag on them. Now that you have the Page Heading an H1 the Blog and Page templates are how they should be with article titles H2.

Perhaps a update someday to fix this. Every SEO article states each webpage should have an H1 heading on it. The article title in the Post template should be that H1.

I never really pushed this since you can just make it a Joomla menu item and use the Page Heading to do this if you need to fully optimize it. Blog posts are not that big of a deal.

Hello, so technically speaking from a SEO perspective the Post template should be changed to an H1 as all pages should have a H1 tag on them. Now that you have the Page Heading an H1 the Blog and Page templates are how they should be with article titles H2. Perhaps a update someday to fix this. Every SEO article states each webpage should have an H1 heading on it. The article title in the Post template should be that H1. I never really pushed this since you can just make it a Joomla menu item and use the Page Heading to do this if you need to fully optimize it. Blog posts are not that big of a deal.
Support Team
Support Team posted this 2 days ago

Hi,

Post Header is a separate control used on Post/Page and Blog templates. It is the same for all templates. If we change its heading to H1 the blog template will have several h1 headings which is not good too. The alternative to this is a new control separate for Post and Page template which is not really good for understanding Themler.

Thank you,
Olivia

Hi, Post Header is a separate control used on Post/Page and Blog templates. It is the same for all templates. If we change its heading to H1 the blog template will have several h1 headings which is not good too. The alternative to this is a new control separate for Post and Page template which is not really good for understanding Themler. Thank you, Olivia
You must log in or register to leave comments