ThemeShaper Forums » Acamas


Acamas Variant CSS code doesn't work in multisite

(1 post)
  • Started 9 years ago by huyz


  1. 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 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.