• Home
  • Get help
  • Ask a question
Last post 2 hours 31 min ago
Posts last week 110
Average response time last week 29 min
All time posts 67419
All time tickets 10424
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#2983 – Meta tags in header

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 20 November 2016 14:14 UTC
Leftfield
Hi :)

I dont use <jdoc:include type="head" /> to avoid all those scripts.

Usually meta description and Title was automatically filled by sh404SEF.

I just put like this:
<meta name="description" content="Whatever here">
<title>And whatever here too</title>

and sh404SEF is filling it anything what is set in its backend.

Now shs404SEF doesn't want to fill that. OK, I understand it is not intended to work like that.



So, is there a code, with which I can call meta descriptions and Titles from sh404SEF?

Yes, I go to com_sh404sef&c=metas&layout=default&view=metas and set Titles and Description - like on attached image.

Thank you, Thank you, Thank you!

BTW: Latest Joomla, Php, sh404SEF.
Other extensions: Admin tools, Akeeba backup, JSN Uniform and nothing else.

- Enable URL optimization is on
- Activate SEO management is on (it's on by default)
- the extension used on your home page is set to "Use default handler") under the "By components" tab of sh404SEF configuration.
- Not using Joomla cache system plugin or anything similar
Monday, 21 November 2016 08:05 UTC
wb_weeblr
Hi

Well for some of it you can probably use the Joomla API, like

$title = JFactory::getDocument()->getHeadData();


How are you doing it withouf sh404SEF?

Rgds

 
Monday, 21 November 2016 08:21 UTC
Leftfield
I am doing like this:
$doc = JFactory::getDocument();
$params = $app->getParams();
$title = $params->get('page_title');
$meta_description = $doc->getMetaData("description");


How I am doing without sh404SEF???

I am not doing without your extension. Man, on 99% of Joomla! sites I install sh404SEF. It is must have! :)

Joomla! is missing SEO from the very beginning, and it is sad story. From 2.5 it is little better.
But it is full of scripts which I don't really need. It just slows down the site. To be worst, they are all in head.
Monday, 21 November 2016 08:39 UTC
wb_weeblr
Hi

I am a little bit confused, as this should pretty mich work with sh404SEF.

Exept fo the title. The tile should not be obtained that way, but instead:

$title = $doc->getTitle();

(you can also just use $doc->getDescription() for the description)

I just tested on the standard Joomla protostar template, and it works fine:



Rgds


 
Monday, 21 November 2016 08:56 UTC
Leftfield
OMG. Sometimes I am bugging.

It works fine! And pulling sh404sef meta settings.

Thank You!
Monday, 21 November 2016 09:33 UTC
wb_weeblr
Hi


You're welcome. Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our new Accelerated Mobiles pages plugin for Joomla - the next big thing is SEO, direct from Google themselves!

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.