Jump to content

conditional title and remove portal home


keneso

Recommended Posts

Hi,

 

I am trying this addon, and as I posted (no reply yet) there it seems to be working fine, save for the homepage.

 

Now after some googling I am trying this, which seems to do what I want, and would like to know if I am doing it correctly, mainly as in good practice, because it seems to be working fine, I just don't want to mess up things I am not aware of.

 

I have put this in the header.tpl

 

<title>{if $kbarticle.title}{$kbarticle.title} - {/if}
{if ($smarty.server.SCRIPT_NAME eq "/index.php")}Domain registrations & Web Hosting{/if}
{$pagetitle} - {$companyname}</title>

{if ($smarty.server.SCRIPT_NAME eq "/index.php")}
<meta content="here the description" name="description">
<meta content="here the keywords" name="keywords">
{/if}

 

Or there is a better, cleaner way to do it?

 

Thank you

Link to comment
Share on other sites

Well yes it's ok but don't focus too much on meta keyword and description.

 

Keyword meta tag is ignored by most of search engines (see here for example) because basically in past it has been used just to spam poison words like "sex, sexy, tits, crack, viagra" in every single website, even cooking ones, just to get a better and faked rank. I personaly don't use it because you gain no benefits but in the same time you put your website at risk of penalties in case you use a posion words.

 

About meta description it's pretty well known that Google reserves the right to ignore what you put here and index your pages with an auto-generated meta description more in line with their prerequisites.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated