• I am trying to add something to the header.php where, depending upon which page you are on, the appropriate image is loaded. I am trying to do it using this code:

    <img src=”images/pages/<?php wp_title(”,true); ?>.jpg” height=”200″ width=”722″ alt=”<?php wp_title(”,true); ?>”/>

    The problem, besides having ridiculously long file names, is that there is always a space before the title. Is there a way to remove that space?

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp_title – remove space?’ is closed to new replies.