Results 1 to 5 of 5

Meta Tag Problem

This is a discussion on Meta Tag Problem within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; All of my meta tag descriptions and keywords have the following <meta name="description" content="META_TAG_DESCRIPTION" /> <meta name="keywords" content="META_TAG_KEYWORDS" /> I ...

      
  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    30
    Rep Power
    0


    Default Meta Tag Problem

    All of my meta tag descriptions and keywords have the following

    <meta name="description" content="META_TAG_DESCRIPTION" />
    <meta name="keywords" content="META_TAG_KEYWORDS" />

    I thought oscmax 2.0 was supposed to fill this in automatically. I've looked at the meta_tags.php file and have been replacing some of the META_TAG_DESCRIPTION areas with my text but nothing makes a change on any of the pages. I go back and correct any of my changes when I see that nothing has worked. Can anyone provide some assistance on this? I've tried to find it in the guide but it's not there or I don't know where to look. Randomly changing things and hoping I hit upon the answer is not working for me. Please tell me what to do. I would prefer the meta tags be different for each page, but something would be better than nothing at this point.

    Thanks!

    Cherie

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: Meta Tag Problem

    whenever you see "META_TAG_DESCRIPTION" something in all caps it means that the define statement is NOT being run since those things are all defined in DEFINE statements. So, you need to look where META_TAG_DESCRIPTION is defined and see why that file is not being run. [I would start looking in /includes/meta_tags.php for the answer]

    Now, the next question is, just how important are meta tags to a page today? That is most likely a discussion for a thread in a completely different area.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  3. #3
    Member
    Join Date
    Sep 2007
    Posts
    30
    Rep Power
    0


    Default Re: Meta Tag Problem

    I installed a fresh copy of the meta_tags.php file and nothing changed. I have determined that I can go to the main_page.tpl.php and add my text where it says META_TAG_DESCRIPTION and it will actually show up. But I am assuming that this would defeat the dynamic meta tag functions and the meta decriptions and keywords would be the same for every page if I did this.

    Any suggestions?

    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />

  4. #4
    Member
    Join Date
    Sep 2007
    Posts
    30
    Rep Power
    0


    Default Re: Meta Tag Problem

    Can anybody offer assistance? Please.

  5. #5
    Member
    Join Date
    Sep 2007
    Posts
    30
    Rep Power
    0


    Default Re: Meta Tag Problem

    Solved the problem! The folowing
    <?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?>
    was moved to after
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />

    resulting in no dynamic tags.

    I moved it back before all the meta statements and everything seems to work.

    I also found the info on how to edit the dynamic meta tags. I kept overlooking it because of how it was titled. It is under "how_to_remove_the_model_number_and_price_from_the _page_title.txt".

    Cherie

Similar Threads

  1. quick meta tag
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-09-2007, 04:11 PM
  2. Meta Tag Controller - question
    By goofy in forum osCMax v1.7 General Mods Discussion
    Replies: 4
    Last Post: 02-21-2007, 07:15 PM
  3. Author Meta tag
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 05-28-2004, 05:58 AM
  4. Meta Tag Controler / Generator
    By Nout in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 02-22-2004, 09:28 AM
  5. meta tag documentation for Max
    By foofoo in forum osCmax v1.7 Discussion
    Replies: 7
    Last Post: 10-29-2003, 12:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •