danfisher85 / alc-scss

SCSS compiler for Alchemists
0 stars 0 forks source link

scss compilation error with WPML separate domains #7

Open pouletfou opened 4 years ago

pouletfou commented 4 years ago

Working on a client website that bought your escapium WP Theme. They are using WPML and wanted to have separate domains per languages. Turns out the use of WP_CONTENT_URL was a problem under this configuration.

Adding the following line in the WP_SCSS_Compiler::parse_stylesheet method and replacing WP_CONTENT_URL by $wp_content_url fixes the problem.

      // Allows this plugin to work with WPML when each language has a different domain
      //  - Constant WP_CONTENT_URL is defined before WPML changes the siteurl option
      $wp_content_url = get_option( 'siteurl' ) . '/wp-content';
danfisher85 commented 4 years ago

Hi pouletfou,

Thanks for letting me know about this issue! Please duplicate your issue report for WP_SCSS_Compiler plugin.

Best Regards! Dan