Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Currently the WordPress Twenty something themes all have this as the title:

<title><?php
    global $page, $paged;
    wp_title('~', true, 'right');
    bloginfo('name');
    $site_description = get_bloginfo('description', 'display');
    if ($site_description && (is_home() || is_front_page()))
        echo " ~ $site_description";
    if ($paged >= 2 || $page >= 2)
        echo ' ~ ' . sprintf(__('Page %s', 'schema'), max($paged, $page));
?></title>

Would it be possible to have the whole bit returning as lowercase perhaps?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Wrapping everything in strtolower should work:

<title><?php
global $page, $paged;

echo strtolower(wp_title( '|', false, 'right' ));

echo strtolower(get_bloginfo( 'name' ));

$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo strtolower(" | $site_description");

if ( $paged >= 2 || $page >= 2 )
echo strtolower(' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ));

?></title>
share|improve this answer
    
Thanks Gavin, appreciated! –  Cor van Noorloos Nov 16 '11 at 23:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.