Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4065

    How can I add my blog description to the title in my homepage?!

    Thanks

    #44807

    Hey,

    open up header.php and search for following code:

    <title><?php if (is_home()) { bloginfo('name'); ?><?php } elseif (is_category() || is_page() ||is_single()) { ?> <?php } ?><?php wp_title(''); ?></title>

    To add your website’s description use:

    <?php bloginfo('description'); ?>

    I’m not sure which title structure you want so I can’t give exact instructions.

    #44808

    on the first page only i want to have my my blog title and then the description

    like this

    Blog Title | Blog Description

    Thanks

    #44809

    Then use:

    <title><?php if (is_home()) { bloginfo('name'); ?><?php } elseif (is_category() || is_page() ||is_single()) { ?> <?php } ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?></title>

    #44810

    Thanks :)

    #44811

    Glad that I could help you :)

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘adding description’ is closed to new replies.