use get_bloginfo(); instead.
<?php get_bloginfo(‘template_url’); ?>
Thanks, but unfortunately, it’s the same result. When it renders, I get:
<link rel="stylesheet" href="<?php get_bloginfo('template_url'); ?>/css/default.css" media="Screen" type="text/css" />
Perhaps it would help if I posted the whole block:
<?php
// BEGIN STYLESWITCHER CODE
if(!isset($reqPath)){ $reqPath = ""; }
require_once($reqPath ."inc/styleswitcher.php");
$ss = new Styleswitcher();
$ss->addStyle("default", "http://www.mysite.com/blog/wp-content/themes/Access/css/default.css", "Screen");
$ss->addStyle("hc", "http://www.mysite.com/blog/wp-content/themes/Access/css/hc.css", "Screen");
$ss->createSet("style");
$ss->addStyleToSet("style", "default", true);
$ss->addStyleToSet("style", "hc");
$ss->cookieDomain = ".". $_SERVER['HTTP_HOST'];
$ss->cookieName = "cwStyle";
$ss->printStyles();
// End Styleswitcher code
?>
Thanks, but unfortunately, it’s the same result. When it renders, I get:
<link rel="stylesheet" href="<?php get_bloginfo('template_url'); ?>/css/default.css" media="Screen" type="text/css" />
Perhaps it would help if I posted the whole block:
<?php
// BEGIN STYLESWITCHER CODE
if(!isset($reqPath)){ $reqPath = ""; }
require_once($reqPath ."inc/styleswitcher.php");
$ss = new Styleswitcher();
$ss->addStyle("default", "http://www.mysite.com/blog/wp-content/themes/Access/css/default.css", "Screen");
$ss->addStyle("hc", "http://www.mysite.com/blog/wp-content/themes/Access/css/hc.css", "Screen");
$ss->createSet("style");
$ss->addStyleToSet("style", "default", true);
$ss->addStyleToSet("style", "hc");
$ss->cookieDomain = ".". $_SERVER['HTTP_HOST'];
$ss->cookieName = "cwStyle";
$ss->printStyles();
// End Styleswitcher code
?>
Right on… I should have posted:
$my_url = get_bloginfo('template_url') . '/css/default.css';
$ss->addStyle("default", $my_url, "screen");
Sorry for the duplicate reply.
That worked like a charm thanks a million!