• When saving CSS as external file, I’m disappointed that you can’t name the css file, you can change the permalink and then a duplicate CSS file is created with the name but it is still not used by this plugin.

    It is much better than Jetpack’s version which is horrible.

    I have now stopped using it as it also forces you to load the CSS where I needed to conditionally include it, I am now using a text editor, FTP, and wp_enqueue_style() in a child functions.php. Much easier (at least after working it out), the below code added before the html header started (not sure if that matters):

    //===========================================================================
    function CompanyHeaderAssets()
    //===========================================================================
    {
        //--- Main Company CSS ------------------------------------------------
        $CssDir  = '/wp-content/themes/oceanwp-child-theme-master/';
        $CssName = 'Company CSS for Dynamic Pages.css';
        wp_enqueue_style("CompanyCss4All", "{$CssDir}{$CssName}", '', time());
    
        //--- Main Company CSS 4 ADMINS ---------------------------------------
        if  (IsCompanyVolunteer())
        {
            //--- Not displaying to visitors ------------------------------------
            $CssName = 'Company CSS for Image Gallery Metadata Tooltips (Volunteers Only).css';
            wp_enqueue_style("CompanyCss4StaffOnly4ImageMetadata", "{$CssDir}{$CssName}", '', time());
        }
    }
    add_action( 'wp_enqueue_scripts', 'CompanyHeaderAssets' );
  • The topic ‘Good Except Can’t Name Files (4567.css etc)’ is closed to new replies.