Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Acamas Variant CSS code doesn't work in multisite « ThemeShaper Forums

ThemeShaper Forums » Acamas

[closed]

Acamas Variant CSS code doesn't work in multisite

(1 post)
  • Started 3 years ago by huyz

Tags:


  1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    huyz

    Member

    I'm using Acamas 1.0.2 in WordPress 3.0.5 running as multisite.

    The problem with multisite is that any customization of the theme must be blog-specific -- otherwise, dropping in acamas-variant will affect all blogs which have the acamas theme selected. So the code can't look for acamas-variant/ in the shared wp-content/ directory.

    As a workaround, since in my setup I always copy any theme that I want to customize for one blog (so that the untouched original theme is still available for other blogs to select), I chose to make the code look for acamas-variant/ inside the theme's directory itself.

    So I changed acamas_variantcss() to have:

    $variantcss_path = dirname( __FILE__ ) . '/acamas-variant/variant.css';
    
        if (file_exists($variantcss_path)) { ?>
            <!-- Custom CSS -->
            <link rel="stylesheet" type="text/css" href="<?php echo dirname( get_bloginfo('stylesheet_url') ) ?>/acamas-variant/variant.css" />
        <?php }

    By the way, in the original code for that function, I don't know the difference between checking for variantcss_path and variantcss_url: unless I can't read properly, the CSS link that is output is the same for both anyway. I don't know if that's intended or not.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183