WordPress.org

Ready to get started?Download WordPress

Forums

Meta Description not displaying in Source Code (7 posts)

  1. fasenfeld
    Member
    Posted 7 years ago #

    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

  2. Bodhipaksa
    Member
    Posted 7 years ago #

    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.

  3. fasenfeld
    Member
    Posted 7 years ago #

    Hi

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

    Regards

    Stephen

  4. Bodhipaksa
    Member
    Posted 7 years ago #

    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.

  5. fasenfeld
    Member
    Posted 7 years ago #

    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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <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

  6. Bodhipaksa
    Member
    Posted 7 years ago #

    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.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic