How do I set WordPress blog_info parameters to have different values than the defaults?
E.g., I want <?php bloginfo('stylesheet_directory'); ?>
to return "/stylesheets"
.
How do I set WordPress blog_info parameters to have different values than the defaults?
E.g., I want <?php bloginfo('stylesheet_directory'); ?>
to return "/stylesheets"
.
You must be logged in to post a comment.
In wp-config.php, you can add these lines:
It should work. Good luck!
There are two filters toward the bottom of
get_bloginfo
, which should be appropriate.http://core.trac.wordpress.org/browser/tags/3.0.4/wp-includes/general-template.php#L484
bloginfo
in turn callsget_bloginfo
so should cover you use.You can find information on adding/using filters by starting here.
http://codex.wordpress.org/Plugin_API
I think your best bet is:
or