WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] raquo and need to strip whitespace from title

[Resolved] raquo and need to strip whitespace from title

  • Hi
    I’ve read four posts on how to strip the raquo from the wordpress post title. But I have some javascript which needs to call the title from the present post, and it is including the whitespace. I’ve stripped the raquo from the title, but the whitespace is still there. Here is the javascript:

    <script language="javascript"><!--
    	$(document).ready(
    	function (){
    		$("<?php wp_title(''); ?>").PikaChoose();
    	}); --></script>

    That is returning this:

    <script language="javascript"><!--
    	$(document).ready(
    	function (){
    	        $("  Gallery1").PikaChoose();
    	}); --></script>

    See the space before the post name “Gallery1” in the second string which is what is printed in the head? How can I remove that space?
    thanks,
    JSC

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] raquo and need to strip whitespace from title’ is closed to new replies.