WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Custom Class Selector] (3 posts)

  1. brihanrohan
    Member
    Posted 4 years ago #

    This plugin is not working for me. I have installed it into my wordpress 2.8.6 blog and pasted in the code from sample funtion.php, modifying just the theme url and the style sheet filename:

    get_bloginfo('themes/dark_splash').'/style.css';

    and adding/modifying the classes in the array.

    However, whenever I go to a post, or save a draft, or try to activate/deactivate a plugin, I get sent to an error page with the following message:

    Warning: Cannot modify header information - headers already sent by (output started at [edit:myblog url]/wp-content/themes/dark splash/functions.php:122) in [edit:my blog url]/wp-includes/pluggable.php on line 865

  2. Aaron Forgue
    Member
    Posted 4 years ago #

    "template_url" is not something that should be replace, it is an actual variable name. So try changing:

    get_bloginfo('themes/dark_splash').'/style.css';

    To:

    get_bloginfo('template_url').'/style.css';

    When actually executed, this will be translated into "themes/dark_splash/style.css"

  3. gordo019
    Member
    Posted 4 years ago #

    This template_url issue threw me as well. Documentation could be clearer. Got the plugin to work within the visual editor but my custom styles do not display when viewed on my blog page. I am using the default theme.

Topic Closed

This topic has been closed to new replies.

About this Topic