Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Administration of my site for SEO purposes*

smurfysmurfy New
edited January 2013 in Vanilla 2.0 - 2.8

How do I add keywords to the title of my index page for SEO purposes, without effecting the administration name of my website. I know nothing about php and the only way that I know how to add keywords to the index page, is to use the Banner Title input box in the admin side. But doing this means that I can not enter the name of my website for the admin side ?

Answers

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited January 2013

    There is no index page as such, but
    Look in the default.master.php of the theme you are using it is found in the views folder of the theme, there is a part where it mentions head

    add the tags as you would between the < head > tags

    < meta name="description" content="Free Web tutorials" />
    < meta name="keywords" content="HTML,CSS,XML,JavaScript" />
    < meta name="author" content="Ståle Refsnes" />
    < meta charset="UTF-8"/ >
    < link rel="apple-touch-icon" href="http://yoursite.com/favicon.png" />
    < /head >
    

    you will see this:

    < head >< ?php $this->RenderAsset('Head'); ? >

    Place the meta after it

  • Options

    Thanks for you reply, but you don't understand what I mean.

    I want to add keywords like this " Hilarious Funny Videos and Funny Pictures" as the title for main page Index, but want to keep the name of my website as the administration name of the website...

    Please take a look at this screen shot which shows the title of the main page (index) as Funny Videos - Hilarious Funny Clips & Fun Movies... But I want to keep the name of my website for the administration side.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    add keywords like this " Hilarious Funny Videos and Funny Pictures" as the title for main page Index,But I want to keep the name of my website for the administration side

    Yea you are right I don't get that part at all...I'm gonna go with ,you can't , you can add your website to the title along with the title of the page, but it will govern all the application including admin.

    Maybe someone else has an idea...

  • Options
    LW1LW1 New
    edited January 2013

    Just cutting in here with a solution / question?

    In the embed theme default.master.php

    There is this

    <head> {asset name='Head'} </head>

    replacing that with -

    <head> {asset name='Head'} <link rel="shortcut icon" href="http://www.example.com/myfavicon.ico" /> </head>

    Gives a favicon and you can add in keywords meta or whatever else thereafter.

    My question is: the embedded theme has a default

    <meta name="description" content="Welcome to my Vanilla 2 Forum."/> <meta name="keywords" content="forum, vanilla"/>

    Appearing yet it's not in the code.

    Anyone know how to remove this? or Change it?

  • Options
    x00x00 MVP
    edited January 2013

    first you only have to put that the favicon in the design folder of your theme (save it as png name it favicon.png), you don't have to add the markup. I will answer you other question in the other thread.

    grep is your friend.

  • Options

    Avoid adding meta tags this way, it is best to do this through theme hooks. It is kind of similar to how some wordpress themes get messy, not great.

    grep is your friend.

Sign In or Register to comment.