Jump to content

Add pre-defined meta tags for pages - how to


simplybe

Recommended Posts

Remember to backup your files before making changes !!!!!!!!!!!!!

 

 

If you want to add your own pre-defined meta tags to the whmcs pages read below:

 

1 edit your header.tpl and replace the current meta tags with:

 

<META content="{$LANG.$filename}" name=DESCRIPTION>

 

<META content="{$LANG.$pagetitle}" name=keywords>

 

2. Now we need to create the meta tags in the language file but first we need to know the pagetitle & filename of each page.

 

Here are most of them:

-----------------------------------------------------

#filename = index #page title = Support

 

#filename = announcements #page title = Announcements

 

#filename = downloads #page title = Downloads

 

#filename = knowledgebase #page title = Knowledgebase

 

#filename = supporttickets #page title = Support Tickets

 

#filename = submitticket #page title = Submit Ticket

 

#filename = domainchecker #page title = Domain Checker

 

#filename = networkissues #page title = Network Issues

 

#filename = cart #page title = Shopping Cart

 

#filename = contact #page title = Pre-Sales Contact Us

 

#filename = clientarea #page title = Client Area

 

 

 

filname = meta description

 

pagetitle = meta keywords

 

----------------------------------------------------------

 

Now we need to edit the language file (in my case english)

 

We will start by adding a language for the index page.

 

Add this to the top of your language file:

 

$_LANG["index"] = " Add your Meta description here";

 

$_LANG["Support"] = "Add your Meta keywords here";

 

Now repeat for each page.

 

If you want to change the meta tags at any point just edit the language file.

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