• Pablitooos

    (@pablitooos)


    Hello, i’m using mystique theme and i’m trying to combine dinamic css generated by `@import “<?php echo esc_url_raw(add_query_arg(‘mystique’, ‘css’, (is_404() ? get_bloginfo(‘url’) : mystique_curPageURL()))); ?>”;
    ` into style.css. I removed the code above from settings.php and everything ok, there just a little matter with the 3 colums. How can i fix it? Thank you ^^

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ve added PHP to your CSS file? PHP will not process a .css file unless you tell it to do so. You have to get a little tricky about it.

    Thread Starter Pablitooos

    (@pablitooos)

    Thanks for your answer, but nope…my idea is to remove completely the css processed by php (www.domain.com/?mystique=css), and that’s easy to do, but after i removed the @import in settings.php i can’t use 3-colums style offered by the theme. Maybe i have to add some css in my style.css but i don’t know what

    You’d have to add the relevant parts of the mystique stylesheet css. I don’t know exactly what that would be. I’ve never used that theme.

    Are you seeing some huge performance hit from the generated css? What is motivating this effort?

    Thread Starter Pablitooos

    (@pablitooos)

    Yep, my wordpress uses 48M and i have activated just 9 plugin and 2 widget, removed every php query from theme and optmize image with smush.it, so i’m trying speed up everything i can

    hi this is exactly what I am trying to do. I’m working thru YSlow to get the best performance I can get. I see that this css (www.domain.com/?mystique=css) produces the biggest lag . . . I would like to do this but wouldn’t want to loose style elements. Have you figure this out?

    it seems I did figure out that I can add the color-green.css into style.css file and then removing echo '@import "'.THEME_URL.'/color-'.$mystique_options['color_scheme'].'.css";'.PHP_EOL; from the settings.css.php to loose one file on load.

    there is the whole matter of js. I haven’t checked out the new light version of the theme yet but I might. thx in advance for help.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘avoid @import ?mystique=css’ is closed to new replies.