How to get Post-Header in H1 ? (Wordpress)

Patrice Decoeur
2 Posts
Patrice Decoeur posted this 19 March 2016

Hi,
I use Themler in Wordpress. The pages title, POST HEADER, appear in H2 format. However, I'd like it to be in H1 format. Could anyone tell me if it's possible and how to get it.
Thanks for your help.
Patrice

Hi, I use Themler in Wordpress. The pages title, POST HEADER, appear in H2 format. However, I'd like it to be in H1 format. Could anyone tell me if it's possible and how to get it. Thanks for your help. Patrice
Vote to pay developers attention to this features or issue.
21 Comments
Order By: Standard | Newest
AlyssaTallent
6 Posts
AlyssaTallent posted this 10 November 2017

oh, I am also interested in this question(

oh, I am also interested in this question(
conor2
21 Posts
conor2 posted this 09 November 2017

Since the "get_the_title()" has the ability to pull in arbitrary HTML code should a user enter HTML code in their page titles, since it's not escaped, you can cause some extra damage.

So let's shorten it all up;

<h1><?php the_title(); ?></h1>

Put that in your "Insert > More > CMS above the "Page" info, delete the existing Page Header, and you're done.

the_title() should only be pulling the area filled out in the TITLE section of WordPress, not any SEO titles from Yoast or other plugins. For extra SEO bonus, the H1 page title and SEO title displayed in Google/Bing should be different. They're different audiences. One "searching" for something, the other is already on your site.

Since the "get_the_title()" has the ability to pull in arbitrary HTML code should a user enter HTML code in their page titles, since it's not escaped, you can cause some extra damage. So let's shorten it all up; <h1><?php the_title(); ?></h1> Put that in your "Insert > More > CMS above the "Page" info, delete the existing Page Header, and you're done. the_title() should only be pulling the area filled out in the TITLE section of WordPress, not any SEO titles from Yoast or other plugins. For extra SEO bonus, the H1 page title and SEO title displayed in Google/Bing should be different. They're different audiences. One "searching" for something, the other is already on your site.

Last edited 09 November 2017 by conor2

Support Team
Support Team posted this 23 October 2017

Hi,

Please try CMS Code control (Themler Insert tab >> More) with the following code:

<h1 class="entry-title ">
<?php
$title = get_the_title();
echo $title;
?>
</h1>

Simply add CMS Code control to the place where you want to display the post header.

Thank you,
Olivia

Hi, Please try CMS Code control (Themler Insert tab >> More) with the following code: `<h1 class="entry-title "> <?php $title = get_the_title(); echo $title; ?> </h1>` Simply add CMS Code control to the place where you want to display the post header. Thank you, Olivia
LGWeb
146 Posts
LGWeb posted this 22 October 2017

I was able to go to the PHP file and directly update it but I prefer the CMS Code Control. But when I try to add it the Post Header doesn't show up. So I'm sure I have the syntax wrong.

I was able to go to the PHP file and directly update it but I prefer the CMS Code Control. But when I try to add it the Post Header doesn't show up. So I'm sure I have the syntax wrong.
LGWeb
146 Posts
LGWeb posted this 22 October 2017

class="entry-title bd-postheader-8">

    Brush Removal Service   

class="entry-title bd-postheader-8"> Brush Removal Service
LGWeb
146 Posts
LGWeb posted this 22 October 2017

<h2 class>

    Brush Removal Service    </h2>

I want this to be H1..

So if I use the Post Header or Product Title I want it H1.

If I use the CMS Code Control what is the proper code for it?

&lt;h2 class&gt; Brush Removal Service </h2> I want this to be H1.. So if I use the Post Header or Product Title I want it H1. If I use the CMS Code Control what is the proper code for it?
LGWeb
146 Posts
LGWeb posted this 22 October 2017

I want the post header not the page title? So what's the code for that?

I want the post header not the page title? So what's the code for that?
LGWeb
146 Posts
LGWeb posted this 22 October 2017

Someone suggested Call it with WordPress code inside CMS Code control and wrap in H1.

Where do I call it from? What file? And what code?

Someone suggested Call it with WordPress code inside CMS Code control and wrap in H1. Where do I call it from? What file? And what code?
LGWeb
146 Posts
LGWeb posted this 22 October 2017

I don't want the Page Title. I want to change the Post Header to use H1 instead of H2...

I don't want the Title and My SEO Description set to the same thing.. That's bad for SEO.

I want to change the default Post Header to H2. Or the Product Title to H2.

I should have the ability to set these to the meta tag needed...

I don't want the Page Title. I want to change the Post Header to use H1 instead of H2... I don't want the Title and My SEO Description set to the same thing.. That's bad for SEO. I want to change the default Post Header to H2. Or the Product Title to H2. I should have the ability to set these to the meta tag needed...
LGWeb
146 Posts
LGWeb posted this 22 October 2017

Insert tab>>More?????

Is this inside Themler or Wordpress... I'm not following you.

Insert tab>>More????? Is this inside Themler or Wordpress... I'm not following you.
LGWeb
146 Posts
LGWeb posted this 22 October 2017

Where do I find this?

You need to use the CMS Code control available under the Insert tab >> More.

Where do I find this? You need to use the CMS Code control available under the Insert tab >> More.
Support Team
Support Team posted this 21 October 2017

Hi,

You need to use the CMS Code control available under the Insert tab >> More. The control should be placed where you want the header to appear.

Sincerely,
Hella

Hi, You need to use the CMS Code control available under the Insert tab >> More. The control should be placed where you want the header to appear. Sincerely, Hella
LGWeb
146 Posts
LGWeb posted this 20 October 2017

Insert a cms control with the code:

&lt;h1&gt;&lt;?php the_title();?&gt;&lt;/h1&gt;

where do i insert this? what file?

> Insert a cms control with the code: > > &lt;h1&gt;&lt;?php the_title();?&gt;&lt;/h1&gt; where do i insert this? what file?
Support Team
Support Team posted this 15 September 2017

adan,

We answered you in your another topic with the same question.
Themler Post Header control uses h2 because of several reasons like the fact that it is used on the Blog template too and you don't need several h1 on the blog pages.
There a few ways on how to output article title as h1: edit theme source code manually, use Page Title, Blog title or CMS Code control with the custom code which displays joomla article title. For example:

<?php
$article =& JTable::getInstance("content");
$article->load(JRequest::getInt("id"));
?>
<h1><?php echo $article->get("title"); ?></h1>

Thank you,
Olivia

adan, We answered you in your another topic with the same question. Themler Post Header control uses h2 because of several reasons like the fact that it is used on the Blog template too and you don't need several h1 on the blog pages. There a few ways on how to output article title as h1: edit theme source code manually, use Page Title, Blog title or CMS Code control with the custom code which displays joomla article title. For example: `<?php $article =& JTable::getInstance("content"); $article->load(JRequest::getInt("id")); ?> <h1><?php echo $article->get("title"); ?></h1>` Thank you, Olivia
enyonam
90 Posts
enyonam posted this 13 September 2017

The > Hello Lorelei,

according to SEO requirements only one tag on the page could be H1, and this is Page Title.

The Post Header now may be output as H1 only if template file is modified manually.

Regards,
Aileen

Hello Lorelei,
according to SEO requirements only one tag on the page could be H1, and this is Page Title.

The Post Header now may be output as H1 only if template file is modified manually.

Regards,
Aileen

The fact that you don't get this is very disturbing. CMS like Joomla and Wordpress are mostly used for news and corporate websites. The content of these sites are usually posts or articles for Wordpress and Joomla respectively. What we are saying here is, We want a way to make the Titles of the posts or articles which are the main content of each page be H1.

Making the page titles created from the menu manager in Joomla is like asking us to create a menu item for each joomla article.

The > Hello Lorelei, > according to SEO requirements only one tag on the page could be H1, and this is Page Title. > > The Post Header now may be output as H1 only if template file is modified manually. > > Regards, > Aileen > Hello Lorelei, > according to SEO requirements only one tag on the page could be H1, and this is Page Title. > > The Post Header now may be output as H1 only if template file is modified manually. > > Regards, > Aileen The fact that you don't get this is very disturbing. CMS like Joomla and Wordpress are mostly used for news and corporate websites. The content of these sites are usually posts or articles for Wordpress and Joomla respectively. What we are saying here is, We want a way to make the Titles of the posts or articles which are the main content of each page be H1. Making the page titles created from the menu manager in Joomla is like asking us to create a menu item for each joomla article.
Support Team
Support Team posted this 11 May 2016

Hello Lorelei,
according to SEO requirements only one tag on the page could be H1, and this is Page Title.

The Post Header now may be output as H1 only if template file is modified manually.

Regards,
Aileen

Hello Lorelei, according to SEO requirements only one tag on the page could be H1, and this is Page Title. The Post Header now may be output as H1 only if template file is modified manually. Regards, Aileen
LGWeb
146 Posts
LGWeb posted this 09 May 2016

If I use the Page Title it contains much more text for SEO purposes. I want to use Post Header but have it as H1 Tag. Can you add this feature to let me set the Post Header to the Tag I need????

If I use the Page Title it contains much more text for SEO purposes. I want to use Post Header but have it as H1 Tag. Can you add this feature to let me set the Post Header to the Tag I need????
funmaking
105 Posts
funmaking posted this 22 March 2016

Insert a cms control with the code:

<h1><?php the_title(); ?></h1>

Insert a cms control with the code: <h1><?php the_title(); ?></h1>
funmaking
105 Posts
funmaking posted this 22 March 2016

Hi,

You can also try using Page Title control available under the Insert Tab >> More.
It uses H1.

Thank you,
Olivia

The Page Title control shows the Main Site Name, not the page title....

> Hi, > > You can also try using **Page Title** control available under the Insert Tab >> More. > It uses H1. > > Thank you, > Olivia The Page Title control shows the Main Site Name, not the page title....
Support Team
Support Team posted this 21 March 2016

Hi,

You can also try using Page Title control available under the Insert Tab >> More.
It uses H1.

Thank you,
Olivia

Hi, You can also try using **Page Title** control available under the Insert Tab >> More. It uses H1. Thank you, Olivia
You must log in or register to leave comments