WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Headspace2 & the Indomagz Magazine 3.1 Theme (4 posts)

  1. burgasleer
    Member
    Posted 5 years ago #

    Hi all,

    I'm really new to WordPress and wanted to ask a question. Forgive me if it's a dumb question and I do hope I've posted this in the correct place.

    I'm using the Indomagz Magazine 3.1 Theme with WordPress 2.7 and the Headspace2 plugin. I read in an article by Joost de Valk (http://yoast.com/perfect-wordpress-theme/), that it is important how your theme handles titles.

    Can anybody tell me if the title code within the header.php in my chosen theme will allow Headspace2 to function correctly as intended?

    The code from my theme is set out below:

    <title>
    <?php
    if (is_home()) {
    echo bloginfo('name'); echo ' | '; echo bloginfo('description');
    } elseif (is_404()) {
    echo '404 Not Found'; echo ' | '; echo bloginfo('name');
    } elseif (is_category()) {
    echo 'Category:'; wp_title(''); echo ' | '; echo bloginfo('name');
    } elseif (is_tag()) {
    echo 'Tags:'; wp_title(''); echo ' | '; echo bloginfo('name');
    } elseif (is_search()) {
    echo 'Search Results'; echo ' | '; echo bloginfo('name');
    } elseif (is_day() || is_month() || is_year() ) {
    echo 'Archives:'; wp_title(''); echo ' | '; echo bloginfo('name');
    } else {
    echo wp_title('');
    $subtitle = get_post_meta($post->ID, 'Subtitle', $single = true);
    if($subtitle !== '') { echo ': ' . $subtitle; }
    echo ' | '; echo bloginfo('name');
    } ?>
    </title>

    Any pointers or advice would be really welcome and appreciated.

    Many thanks,

    Pete

  2. John Godley
    Member
    Posted 5 years ago #

    It should work fine, although it is a little complicated and could be simplified by removing most of the if statements.

  3. burgasleer
    Member
    Posted 5 years ago #

    Thanks johnny5, much obliged.

  4. georgesully
    Member
    Posted 5 years ago #

    burgasleer! I cant seem to find the Indomagz Magazine 3.1, anywhere, is it possible to lead me to the right place to download it?? I would really appreciated !!

Topic Closed

This topic has been closed to new replies.

About this Topic