• Hi Guys

    I have a wordpress question I was hoping someone could answer.

    I am trying to get my meta description tag to display on both my main index page source code as well as my category pages source code.

    I have no problem getting the description to display in the source code for individual posts. Basically the 1st line is pulled from the body content of each post.

    However when I look at my main index page source code and
    category source code all I see is

    <meta name=”description” content=”” />

    No description is being inserted. I am obviously doing something wrong and need to add something somewhere into the backend of wordpress or to a plugin.

    I am using the Semiologic theme in WordPress.

    If anyone could give me step by step instructions on how to remedy this I would really appreciate it.

    I am sure this is affecting my searc engine rankings if I dont have this set up correctly.

    Regards

    Stephen

Viewing 6 replies - 1 through 6 (of 6 total)
  • The question I’d ask is what’s the relevant part of your header.php file?

    I suspect that the absence of a meta description almost certainly is having no effect on your search engine rankings, however.

    Thread Starter fasenfeld

    (@fasenfeld)

    Hi

    I posted this about 8 hours ago and am still looking for any suggestions.

    Regards

    Stephen

    And I asked you a question 8 hours ago and I’m still waiting for you to answer. It’s hard to offer suggestions without information. In this case it would be useful to know what the code is in your header.php file that specifies where the information for the description comes from.

    Thread Starter fasenfeld

    (@fasenfeld)

    Hi

    Sorry about that I misread your post and didnt understand what you were asking. I am new to WordPress. Here is the code in my header.php file.
    Any help would be greatly appreciated.

    <?php
    #
    # DO NOT EDIT THIS FILE
    # ———————
    # The Semiologic theme features a custom.php feature. This allows to hook into
    # the template without editing its php files. That way, you won’t need to worry
    # about losing your changes when you upgrade your site.
    #
    # You’ll find detailed sample files in the custom-samples folder
    #
    ?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html><head><title><?php do_action(‘display_page_title’); ?></title>
    <?php
    do_action(‘wp_head’);
    ?>
    </head>
    <body class=”<?php do_action(‘display_page_class’); ?>”>
    <?php
    do_action(‘before_the_wrapper’);
    ?>
    <div id=”ext_wrapper”>
    <div id=”shadow_top”></div>
    <div id=”shadow”>
    <div id=”wrapper”>

    <?php
    do_action(‘before_the_header’);
    do_action(‘display_header’);
    do_action(‘display_navbar’);
    do_action(‘after_the_header’);
    ?>

    <div id=”body” class=”body”>
    <div id=”ext_main”>
    <div id=”main” class=”main”>
    <div class=”pad”>

    Regards

    Stephen

    Yikes! I probably can’t be of any help apart from bumping this to the top.

    Presumably it’s the

    <?php
    do_action('wp_head');
    ?>

    part that generates the meta description, but I don’t know anything about that function. Hopefully someone else here can help you out.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    What plugin or addon is actually generating the meta description?

    He’s correct about the wp_head bit, however that’s just a standard action hook. Something, somewhere else, is using that to insert the description bits. You need to figure out what plugin is doing that.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Meta Description not displaying in Source Code’ is closed to new replies.