Unique Meta data for pages. Can you help me?

Discussion in 'PHP' started by mongolpunctro, Oct 20, 2011.

  1. #1
    Hello. I got a problem with the website in the attachment:
    It has many pages, one of them is about us (included in attachment).
    The problem is when you access about_us.php, keywords, description and all meta data are loaded from index.php
    How can i create individual meta data for every page? Because it would help me alot for SEO purpuse.

    Thank you so much.

    View attachment site.zip
     
    mongolpunctro, Oct 20, 2011 IP
  2. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #2
    It's difficult to change the meta data on every page like the site is build up right now. It is possible, but only if those variables are set, before the index.php starts parsing the head.
     
    ssmm987, Oct 20, 2011 IP
  3. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    #3
    I don't want to download your attachment, post the code in here for your header. How do you load content?
     
    HuggyEssex, Oct 20, 2011 IP
  4. mongolpunctro

    mongolpunctro Greenhorn

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    This is how header is coded:

    <div class="header">
    <div class="main_menu">
    <div id="mytabsmenu" class="tabs_menu">
    <ul>
    <li><a href="../about_us.html" rel="gotsubmenu" onfocus="this.blur();">ABOUT US</a></li>

    </ul>
    </div>

    <div id="mysubmenuarea" class="tabs_submenu">
    <!--1st link within submenu container should point to the external submenu contents file-->
    <a href="submenucontents.php" style="visibility:hidden;">Continut submeniu</a>
    </div>

    <script type="text/javascript">
    //mouseovertabsmenu.init("tabs_container_id", "submenu_container_id", "bool_hidecontentsmouseout")
    mouseovertabsmenu.init("mytabsmenu", "mysubmenuarea", true)
    </script>
    </div>
    </div>
     
    mongolpunctro, Oct 20, 2011 IP
  5. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    #5
    That's not the actual <head> info, you must be using a template system. The most likely place this info is kept is the template index file or the index root file itself. If you can find it post the code here and I'll try to help.
     
    HuggyEssex, Oct 20, 2011 IP