Adding custom meta tags for every other page in Joomla

I am using Joomla 2.5. I want to set a meta tag property with the name "com.silverpop.pagename" for each page (article) on my website. For example, my homepage will have:

<meta name="com.silverpop.pagename" content="Home Page" /> 

My blog will have:

 <meta name="com.silverpop.pagename" content="Blog" /> 

How to do it?

+4
source share
2 answers

You need to change the title. This can be done using editing.

JOOMLA_ROOT \ libraries \ Joomla \ document \ HTML \ visualizer \ head.php

Here you can change the behavior of the header.

+2
source

I had the same problem when I had to add Facebook Open Graph META meta tags in my Joomla project.

 <meta property="og:type" content="article"/>; 

I included this code in my Joomla template and it worked for me, please see:

 # add Facebook tags $doc = JFactory::getDocument(); $doc->addCustomTag("<meta property='og:type' content='article'/>"); 

You can also link to the Link .

Hope this helps others.

+2
source

Source: https://habr.com/ru/post/1447127/


All Articles