We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

meta tag only on home page? | Forum

Topic location: Forum home » Support » General Questions
Marcus
Marcus Dec 20 '15
my home page is redirected to sign-in page how do i show meta tags only on home page and not over the whole site?

How do i include this in the header of the sigin page that will only show there?
  1. nav+page_default_keywords
  2. nav+page_default_description
  3. nav+page_default_title



tammy harris
tammy harris Dec 20 '15
these 2 plugins in store simple seo and advanced seo
ross Team
ross Dec 21 '15
Also you can open blank.html file in the master pages of your active theme


and add this:


<head>{$headData}</head>


to the top of your page. then enable dev mode and the meta tags your site has will be applied to the sign-in page as well

Marcus
Marcus Dec 21 '15
Ross baby my sigin page is missing nav+page_default_keywords

Please give me some pointer to make it show there?

Is there a way I can parse the content of the sigin page?

I would like to use this code but how do I hook to sign-in page only??

OW::getDocument()->setKeywords(OW::getLanguage()->text('somekey', 'keywords'));
The Forum post is edited by Marcus Dec 21 '15
Marcus
Marcus Dec 21 '15
I added to sign-in.php and it works but how can I hook to that page from plugin?
Marcus
Marcus Dec 22 '15
Thanks Ross. I am aware that google ain't using keywords but all my high ranking competitors have them so I need to include them too just in case :)

So do you know how to hook to sign-in.php from plugin?