WordPress.org

Ready to get started?Download WordPress

Forums

Adding a tagline after WP setup, can it be done? (9 posts)

  1. addcoach
    Member
    Posted 9 years ago #

    How to I add a tagline for my blog if I didn't set one up at the beginning?

    I've gone under options-general and added it to the tagline section and updated it but it's not showing up on the blog.

    From the codex i know it should be in the form of
    <?php bloginfo('description'); ?>
    but I don't know which file its in. I've added a theme. I'm assuming once I know where it is I just have to change 'description' to my tagline?

    Pete

  2. katesgasis
    Member
    Posted 9 years ago #

    Login to your Admin panel and then go to Options.

  3. addcoach
    Member
    Posted 9 years ago #

    As I said, I've tried that and it hasn't worked. Do you know which particular file the code is at that i have to modify to get this to work?

  4. katesgasis
    Member
    Posted 9 years ago #

    Open your theme's header template (header.php) then put it somewhere like <div id="header" >

  5. addcoach
    Member
    Posted 9 years ago #

    Hi Katesgais,

    I tried that and it didn't work. Is this the right code I'm using? I did it on the template header.php page and here's the code i tried first

    '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    <div id="header" >
    <?php bloginfo('ADD Knowledge+Awareness +Action+Coaching+Support= Adult ADD Strengths'); ?>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->'

    I've also tried it here instead

    '<div id="rap">

    <h1 id="header">"><?php bloginfo('name'); ?></h1>

    <?php bloginfo('description'); ?>ADD Knowledge+Awareness +Action+Coaching+Support= Adult ADD Strengths

    <div id="navcontainer">

  6. iand
    Member
    Posted 9 years ago #

    The tag <?php bloginfo('description'); ?> should be used as it is, it will return the content of the tagline box in your admin panel. You don't need to anything else to it to use in your template.

  7. addcoach
    Member
    Posted 9 years ago #

    Perfect! works great.

    thanks a lot Ian.

    what code would i put in below the '<?php bloginfo('description'); ?>' if i wanted an empty line for space ie above it and below it? I've tried '<li

  8. ' and '
      '<li ' and it doesn't work.

      thanks

      Pete

  • notthatugly
    Member
    Posted 9 years ago #

    <br/> seems easiest.

  • addcoach
    Member
    Posted 9 years ago #

    got this error message when i did on home page

    ader --> html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    any other ways of doing so?

    Pete

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags