Elxis CMS Forum

Support => General => Topic started by: ipghmagnet on October 11, 2022, 17:36:09

Title: How to add <h1> in /tags.html?tag=
Post by: ipghmagnet on October 11, 2022, 17:36:09
Dear Heros:

May I know how to add <h1> for below links:
https://www.nbvsmagnetic.com/tags.html?tag=ndfeb+grade
https://www.nbvsmagnetic.com/tags.html?tag=permanent+magnet
https://www.nbvsmagnetic.com/tags.html?tag=nd2fe12nx
those are without <h1> , it is viewed as seo-not-friendly.
I also want to add more description content for this page?
How should I do?
Thanks in advanceļ¼
Title: Re: How to add <h1> in /tags.html?tag=
Post by: datahell on October 22, 2022, 09:59:55
Open the file below:

components/com_content/views/generic.html.php
scroll to line 127:
echo '<h2>'.sprintf($eLang->get('ARTICLES_TAGGED'), $tag)."</h2>\n";

Change h2 tags with h1 tags:
echo '<h1>'.sprintf($eLang->get('ARTICLES_TAGGED'), $tag)."</h1>\n";

Save the file.

As for the description, what you think would be more suitable for this page?
Title: Re: How to add <h1> in /tags.html?tag=
Post by: ipghmagnet on October 25, 2022, 17:02:07
Thanks Datahell,

I have been watching the home page of www.elxis.org . I thought there was no reply on my topics.
Now i login into the forum, i found you have replied me. Thanks a lot.

Thanks for your help.
For description, i want to add my company's information or some main items introduction to make the page with enough words as per google seo requirement.

Thanks a lot ..

ipghmagnet
 
Title: Re: How to add <h1> in /tags.html?tag=
Post by: datahell on October 25, 2022, 18:39:39
elxis.org displays the latest topics, not the replies.

For META tags check elxis.net docs (https://www.elxis.net/docs/developers/libraries/elxisdocument.html#meta). You can set them from your template's index.php file or a plugin