• on my index page i want a title tag like Blogname – what’s the blog about and on a individual blog post page i want a titel like “name of the post” – blogname

    how can i fix this ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Dashboard -> Options -> General is where you’ll find the fields.

    Hope this helps,
    -drmike

    If you want to fully customize it, you can use something like:

    <title><?php
    if (is_home()) {
    bloginfo('name');
    ?>, <?php
    bloginfo('description');
    } else {
    wp_title('');
    ?>  &raquo; <?php
    bloginfo('name');
    }
    ?></title>

    Thread Starter svinusje

    (@svinusje)

    how can i replace raquo; <?php
    bloginfo(‘name’);
    }

    with a text like “lalalala” hardcoded ?

    Thread Starter svinusje

    (@svinusje)

    <title><?php
    if (is_home()) {
    bloginfo(‘name’);
    ?>, <?php
    bloginfo(‘description’);
    } else {
    wp_title(”);
    ?> echo “- text”;
    }
    ?></title>

    gives always errors :s

    here is the one I use, maybe u find it helpful:

    <title><?php
    if (is_home () ) {
    echo “Weblog: “;
    bloginfo(‘name’);
    } elseif ( is_category() ) {
    single_cat_title();
    echo ” – “;
    bloginfo(‘name’);
    } elseif (is_single() || is_page() ) {
    single_post_title();
    echo ” (https://www.cogmios.nl – Edward de Leau)”;
    } elseif (is_search() ) {
    echo “You searched Cogmios.nl for: “;
    echo wp_specialchars($s);
    } else {
    wp_title(”,true);
    } ?> </title>

    1) I use the “weblog:” verb so people who bookmark it know its a weblog
    2) On the homepage they see just the title
    3) On a single posting (permalink) page they see the name of the posting, so when you find it in a search engine you see just the name of the topic of the post and not the blogname. It is then followed by my blog name for some branding.
    4) the other ones are pretty default: categories (since i dont use them (dont want to categorize 7500 blogpostings)) and search also.

    So just replace it in the mostly “header.php” file in your theme via your wordpress admin console.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘modify titel tag’ is closed to new replies.