Post header as H1 heading?

Werbeagentur Schulz-Design
171 Posts
Werbeagentur Schulz-Design posted this 31 May 2023

Hello,

I'm still hoping to get an answer.

For the post template, I want the headings to appear as H1 headings and not H2 headings.

Does anyone have an idea if and how I can do that?

Thanks and best regards

Thorsten
Werbeagentur Schulz-Design

Hello, I'm still hoping to get an answer. For the post template, I want the headings to appear as H1 headings and not H2 headings. Does anyone have an idea if and how I can do that? Thanks and best regards Thorsten [Werbeagentur Schulz-Design][1] [1]: https://www.schulzdesign.info

Last edited 31 May 2023 by Werbeagentur Schulz-Design

Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
truongthanhhangpoh527
1 Posts
truongthanhhangpoh527 posted this 01 June 2023

Thanks for the info I will try to figure it out for more.

Thanks for the info I will try to figure it out for more.
CATSS
18 Posts
CATSS posted this 01 June 2023

Hi Thorsten,

Bei dem Themler-Template für Joomla ist es meines wissens nach so dass, die H1 bzw H2 fest rein programmiert wurde. Sie haben da Joomla meines wissens nach zwei Möglichkeiten.

  1. Deaktivierung aller Einstellungen in den Beitrags- und Menüpunkt-optionen, die irgendwie Joomla veranlassen könnten eine H1 oder H2 anzuzeigen. Und dann selbst im Beitrag die entsprechende H1 anlegen.

  2. Eine Erweiterung installieren die das automatisch von H2 auf H1 ändert wenn die Webseite aufgerufen wird. Die Erweiterung Amy H1 Heading sollte das können.

Gruß

CATSS

Hi Thorsten,

As far as I know, the Themler template for Joomla is such that the H1 or H2 was hard-coded. As far as I know, you have two options with Joomla.

  1. Disabling any settings in the post and menu item options that could somehow cause Joomla to display an H1 or H2. And then create the corresponding H1 yourself in the post.

  2. Install an extension that automatically changes this from H2 to H1 when the website is accessed. The Amy H1 Heading extension should be able to do that.

greeting

CATSS

Hi Thorsten, Bei dem Themler-Template für Joomla ist es meines wissens nach so dass, die H1 bzw H2 fest rein programmiert wurde. Sie haben da Joomla meines wissens nach zwei Möglichkeiten. 1. Deaktivierung aller Einstellungen in den Beitrags- und Menüpunkt-optionen, die irgendwie Joomla veranlassen könnten eine H1 oder H2 anzuzeigen. Und dann selbst im Beitrag die entsprechende H1 anlegen. 2. Eine Erweiterung installieren die das automatisch von H2 auf H1 ändert wenn die Webseite aufgerufen wird. Die Erweiterung Amy H1 Heading sollte das können. Gruß CATSS Hi Thorsten, As far as I know, the Themler template for Joomla is such that the H1 or H2 was hard-coded. As far as I know, you have two options with Joomla. 1. Disabling any settings in the post and menu item options that could somehow cause Joomla to display an H1 or H2. And then create the corresponding H1 yourself in the post. 2. Install an extension that automatically changes this from H2 to H1 when the website is accessed. The Amy H1 Heading extension should be able to do that. greeting CATSS
Werbeagentur Schulz-Design
171 Posts
Werbeagentur Schulz-Design posted this 01 June 2023

Hi CATSS,

vielen Dank für deine Antwort und dem Tipp mit Aimy H1 Heading for Joomla!
Ich habe es probiert, aber leider funktioniert es nicht (mit Themler).
Auch nicht, wenn ich den TITLE aus dem Post-Template entferne.

Könnte man im Joomla-PHP-Code die Ausgabe von H2 auf H1ändern?

Beste Grüße
Thorsten

Hi CATSS,

thanks for your answer and the tip with Aimy H1 Heading for Joomla!
I tried it but unfortunately it doesn't work (with Themler).
Not even if I remove the TITLE from the post template.

Would it be possible to change the output from H2 to H1 in the Joomla PHP code?

Best regards,
Thorsten

Hi CATSS, vielen Dank für deine Antwort und dem Tipp mit Aimy H1 Heading for Joomla! Ich habe es probiert, aber leider funktioniert es nicht (mit Themler). Auch nicht, wenn ich den TITLE aus dem Post-Template entferne. Könnte man im Joomla-PHP-Code die Ausgabe von H2 auf H1ändern? Beste Grüße Thorsten Hi CATSS, thanks for your answer and the tip with Aimy H1 Heading for Joomla! I tried it but unfortunately it doesn't work (with Themler). Not even if I remove the TITLE from the post template. Would it be possible to change the output from H2 to H1 in the Joomla PHP code? Best regards, Thorsten
CATSS
18 Posts
CATSS posted this 05 June 2023

Hi CATSS,

vielen Dank für deine Antwort und dem Tipp mit Aimy H1 Heading for Joomla!
Ich habe es probiert, aber leider funktioniert es nicht (mit Themler).
Auch nicht, wenn ich den TITLE aus dem Post-Template entferne.

Könnte man im Joomla-PHP-Code die Ausgabe von H2 auf H1ändern?

Beste Grüße
Thorsten

Hi CATSS,

thanks for your answer and the tip with Aimy H1 Heading for Joomla!
I tried it but unfortunately it doesn't work (with Themler).
Not even if I remove the TITLE from the post template.

Would it be possible to change the output from H2 to H1 in the Joomla PHP code?

Best regards,
Thorsten

Hallo Thorsten,

Haben Sie mal versucht die Erweiterung als erstes ausführen zu lassen? also vor irgendeiner anderen Erweiterung, wie z.B. Cookie Hint etc. ? Ich habe nochmal bei unserer Webseite geschaut und wir setzten die Erweiterung auch ein. Und bei uns läuft die Erweiterung noch vor allen anderen z.B. unseren Cookiebanner. Wir verwenden auch den POST-HEADER statt den POST-TITLE.

Ich muss meine 1. Antwort auch etwas korrigieren. Wir lassen die Überschriften über die globalen Einstellungen anzeigen, und wir legen die Überschriften über die Menü-Einstellungen fest. Ich hoffe die angehängten Screenshots helfen etwas.

Und die Stelle für die Überschriften im PHP Code habe ich noch nicht gefunden bzw. hatte ich noch nicht soviel Zeit nachzuschauen ob mann das dort evtl. sogar besser lösen kann.

Gruß,

CATSS

Hello Thorsten,

Have you tried running the extension first? i.e. before any other extension, such as Cookie Hint etc. ? I checked our website again and we are using the extension. And with us, the extension runs before all others, e.g. our cookie banner. We also use the POST-HEADER instead of the POST-TITLE.

I also have to correct my first answer a bit. We display the headings via the global settings and we set the headings via the menu settings. I hope the attached screenshots are of some help.

And I haven't found the place for the headings in the PHP code yet, or I haven't had much time to look up whether there might even be a better solution.

Greeting,

CATSS

> Hi CATSS, > > vielen Dank für deine Antwort und dem Tipp mit Aimy H1 Heading for Joomla! > Ich habe es probiert, aber leider funktioniert es nicht (mit Themler). > Auch nicht, wenn ich den TITLE aus dem Post-Template entferne. > > Könnte man im Joomla-PHP-Code die Ausgabe von H2 auf H1ändern? > > Beste Grüße > Thorsten > > > Hi CATSS, > > thanks for your answer and the tip with Aimy H1 Heading for Joomla! > I tried it but unfortunately it doesn't work (with Themler). > Not even if I remove the TITLE from the post template. > > Would it be possible to change the output from H2 to H1 in the Joomla PHP code? > > Best regards, > Thorsten Hallo Thorsten, Haben Sie mal versucht die Erweiterung als erstes ausführen zu lassen? also vor irgendeiner anderen Erweiterung, wie z.B. Cookie Hint etc. ? Ich habe nochmal bei unserer Webseite geschaut und wir setzten die Erweiterung auch ein. Und bei uns läuft die Erweiterung noch vor allen anderen z.B. unseren Cookiebanner. Wir verwenden auch den POST-HEADER statt den POST-TITLE. Ich muss meine 1. Antwort auch etwas korrigieren. Wir lassen die Überschriften über die globalen Einstellungen anzeigen, und wir legen die Überschriften über die Menü-Einstellungen fest. Ich hoffe die angehängten Screenshots helfen etwas. Und die Stelle für die Überschriften im PHP Code habe ich noch nicht gefunden bzw. hatte ich noch nicht soviel Zeit nachzuschauen ob mann das dort evtl. sogar besser lösen kann. Gruß, CATSS Hello Thorsten, Have you tried running the extension first? i.e. before any other extension, such as Cookie Hint etc. ? I checked our website again and we are using the extension. And with us, the extension runs before all others, e.g. our cookie banner. We also use the POST-HEADER instead of the POST-TITLE. I also have to correct my first answer a bit. We display the headings via the global settings and we set the headings via the menu settings. I hope the attached screenshots are of some help. And I haven't found the place for the headings in the PHP code yet, or I haven't had much time to look up whether there might even be a better solution. Greeting, CATSS
emperor
24 Posts
emperor posted this 05 June 2023

If you are considering modifying Joomla 4 code to make such change in 'blog view' (not featured articles), try this:

File to modify:
layouts/joomla/content/blog_style_default_item_title.php

Find this code:

<div class="page-header">
    <?php if ($params->get('show_title')) : ?>
        <h2 itemprop="name">
            <?php if ($params->get('link_titles') && ($params->get('access-view') || $params->get('show_noauth', '0') == '1')) : ?>
                <a href="<?php echo Route::_($link); ?>" itemprop="url">
                    <?php echo $this->escape($displayData->title); ?>
                </a>
            <?php else : ?>
                <?php echo $this->escape($displayData->title); ?>
            <?php endif; ?>
        </h2>

If you replace h2 with h1, you will get desired result (cache cleaning may be needed). However, keep in mind that next Joomla updates will override this file.

If you are considering modifying Joomla 4 code to make such change in 'blog view' (not featured articles), try this: File to modify: **layouts/joomla/content/blog_style_default_item_title.php** Find this code: <div class="page-header"> <?php if ($params->get('show_title')) : ?> <h2 itemprop="name"> <?php if ($params->get('link_titles') && ($params->get('access-view') || $params->get('show_noauth', '0') == '1')) : ?> <a href="<?php echo Route::_($link); ?>" itemprop="url"> <?php echo $this->escape($displayData->title); ?> </a> <?php else : ?> <?php echo $this->escape($displayData->title); ?> <?php endif; ?> </h2> **If you replace h2 with h1**, you will get desired result (cache cleaning may be needed). However, keep in mind that next Joomla updates will override this file.

Last edited 05 June 2023 by emperor

Werbeagentur Schulz-Design
171 Posts
Werbeagentur Schulz-Design posted this 12 June 2023

Hello,
is there an answer from support?
HELLO?

Hello, is there an answer from support? HELLO?
Werbeagentur Schulz-Design
171 Posts
Werbeagentur Schulz-Design posted this 15 June 2023

Hallo CATSS,

ich habe mich mit dem Programmierer von Aimy H1 Heading in Verbindung gesetzt. Dieser hat sich meine Website angeschaut und folgende Antwort erhalten;

"Hallo Herr Schulz,
es stellt sich heraus, dass die Änderungen, die unsere Erweiterung umsetzt, von Ihrem Template nicht aufgenommen werden. Wir können dafür an der Erweiterung aber nichts anpassen - das heißt das Aimy H1 Heading leider nicht kompatibel ist mit Ihrem Template und Sie diese Erweiterung daher nicht nutzen können. Tut mir leid!"

Das Problem liegt also an Themler und hier antwortet bekanntlich keiner mehr.

Vielen Dank für deine Hilfe
Thorsten

Hello CATSS,

I contacted the programmer of Aimy H1 Heading. He looked at my website and got the following answer;

'Hello Mr Schulz,
it turns out that the changes implemented by our extension are not picked up by your template. However, we cannot change anything in the extension for this - this means that the Aimy H1 Heading is unfortunately not compatible with your template and you cannot use this extension. I'm sorry!'

So the problem lies with Themler and, as is well known, no one answers here anymore.

Thank you for your help
Thorsten

Werbeagentur Schulz-Design

Hallo CATSS, ich habe mich mit dem Programmierer von Aimy H1 Heading in Verbindung gesetzt. Dieser hat sich meine Website angeschaut und folgende Antwort erhalten; "Hallo Herr Schulz, es stellt sich heraus, dass die Änderungen, die unsere Erweiterung umsetzt, von Ihrem Template nicht aufgenommen werden. Wir können dafür an der Erweiterung aber nichts anpassen - das heißt das Aimy H1 Heading leider nicht kompatibel ist mit Ihrem Template und Sie diese Erweiterung daher nicht nutzen können. Tut mir leid!" Das Problem liegt also an Themler und hier antwortet bekanntlich keiner mehr. Vielen Dank für deine Hilfe Thorsten Hello CATSS, I contacted the programmer of Aimy H1 Heading. He looked at my website and got the following answer; 'Hello Mr Schulz, it turns out that the changes implemented by our extension are not picked up by your template. However, we cannot change anything in the extension for this - this means that the Aimy H1 Heading is unfortunately not compatible with your template and you cannot use this extension. I'm sorry!' So the problem lies with Themler and, as is well known, no one answers here anymore. Thank you for your help Thorsten [Werbeagentur Schulz-Design][1] [1]: https://www,schulzdesign.info
You must log in or register to leave comments