Help end world hunger

Getting rid of &raquo

Last updated on May 12th, 2008 • Categorized in: Phauxshow Design

Web design is truly an art in and of itself. In this category, we will document many of the steps we took to get us here…

The &raquo

The &raquo, or » is as loved as it is hated. On Wordpress, it is often the default symbol set in the theme of your installation. Let’s look at how we can remove or replace it.

Have a look in the header.php file of whatever theme you are using. You should see this within the code.

 

<title><?php bloginfo(’name’); ?> <?php if ( is_single() ) { ?>
» <?php
foreach((get_the_category()) as $cat) {
echo $cat->cat_name . ‘ ‘;
} ?> <?php } ?>

<?php wp_title(); ?></title>

 

Look for either &raquo or ». In our case, we replaced it with a |. We also put a | in this line of code ‘<?php wp_title(’ | ‘); ?></title>’ to give us a | after the title. Have a look below to see what we did in full.

 

<title><?php bloginfo(’name’); ?> <?php if ( is_single() ) { ?> |
<?php
foreach((get_the_category()) as $cat) {
echo $cat->cat_name . ‘ ‘;
} ?> <?php } ?>

<?php wp_title(’ | ‘); ?></title>

 

The effect is a | between our site name, page, category or archive. We think ‘Phauxshow | Artists | Elizabeth West’ looks a little better than ‘Phauxshow » Artists » Elizabeth West’, don’t you?

Let us know if you have any questions!







Have your say!