We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36711
    • 68 Posts
    hi

    just checking my site and noticed that the meta description and keyword tag are not loaded in the header section
    i am using MODx 2.0.6-pl2 version
    here is my header code:
    <head>
    <title>[[*pagetitle]] | [[++site_name]]</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />  
    <base href="[[++site_url]]" />
    <meta name="description" content="[[*description]]" />
    <meta name="keywords" content="" />
    <link rel="stylesheet" href="assets/styles/base.css" type="text/css" />
    <link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.ico"> 
    [[$googleAnalytics]] 
    </head>
    


    the title tag and Analytics tracking code is loaded
    strangely on my localhost i didn’t have this problem
    any ideas, tips, advice?

    thanx in advance
      sherlockseo
    • Hello,

      You may want to have a look at MetaX as it will generate and populate the description, keyword, and related tags for you. In regards to the above code the description tag should work provided the page has a description given. The keyword tag will not work as there is nothing to add the keywords.
        Patrick | Server Wrangler
        About Me: Website | TweetsMODX Hosting
        • 36711
        • 68 Posts
        Quote from: AMDbuilder at Jan 24, 2011, 07:06 PM

        Hello,

        You may want to have a look at MetaX as it will generate and populate the description, keyword, and related tags for you. In regards to the above code the description tag should work provided the page has a description given. The keyword tag will not work as there is nothing to add the keywords.

        thanx for your tip
        i have the MeatX package installed and tried with the default code:
        [[!MetaX?language='hu' &allkeywords='Site_Keywords']]
        

        after this, all meta tags have loaded - of course i would customize it using parameters

        still, i can’t figure out why the meta descr didn’t load with the code
        <meta name="description" content="[[*description]]" />
        


        the page has meta description and with MetaX it loaded as I checked in the source code but most probably I will be using the MetaX from now on


          sherlockseo
        • You should be able to use the description tag provided earlier:

          <meta name="description" content="[[*description]]" />


          The TV code is correct, the spelling seams fine, so I can’t think of why it wouldn’t work. Did you notice this problem with any other site?
            Patrick | Server Wrangler
            About Me: Website | TweetsMODX Hosting
            • 33988
            • 110 Posts
            The only reason that meta tag will be omitted by MetaX would be when the description field is blank. If the field is blank, instead of putting content="", it omits the tag completely.
              Sal Sodano
              President & Co-Founder of SkyToaster
              My Website Salscode.