Support » Plugins and Hacks » Headspace2 & the Indomagz Magazine 3.1 Theme

  • Resolved burgasleer

    (@burgasleer)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • It should work fine, although it is a little complicated and could be simplified by removing most of the if statements.

    Thanks johnny5, much obliged.

    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 !!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Headspace2 & the Indomagz Magazine 3.1 Theme’ is closed to new replies.