Re: Updated to Desmond But Theme Not Working
Testing bbpress on localhost (xampp, windows) and viewing with firefox I get the same error in the stylesheet link.
<link rel="stylesheet" href="http://localhost/leebbpress/bb-templates/kakumei/style.css" type="text/css" />
Created the plugin as Trent suggested but that didn’t solve the problem. Played around with the code a bit and now it does work.
Here is my hacked version.
<?php
function fix_bb_path_to_url( $url ) {
$url = str_replace(array('//', '\\', '\'), array('/', '\', '/'), $url);
return preg_replace( '|([^/])|', '/$1', $url );
}
add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );
?>
Only difference is adding ‘\’ to the str_replace.