Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #75693
    Imaginate
    Participant

    Hello, I’m using X with a child theme that is referencing:
    @import url( ‘../x/framework/css/site/stacks/integrity-dark.css’ );

    I have Integrity set on the stacks in the customizer, however the shortcodes are loading the integrity-light.css instead of the dark.

    Any reason or solution to make sure it load the dark css?

    Thanks

    #76120
    Mrinal
    Member

    Hi There,

    I’ve got a temporary fix for you. Follow the steps below:

    1) Please open wp-contents/plugins/x-shortcodes/functions/enqueue/styles.php via a Text editor.
    2) Now, go to line no. 20 saying:
    $stack = ( get_theme_mod( 'x_stack' ) ) ? get_theme_mod( 'x_stack' ) : 'integrity';
    3) Replace the line with the following:
    $stack = ( x_get_option( 'x_stack' ) ) ? x_get_option( 'x_stack' ) : 'integrity';

    If you can’t do it yourself then please share your FTP login info as private reply here.

    Hope this helps, Cheers!

    #79188
    Imaginate
    Participant

    I just update it as suggested, however, it didn’t seem to work.

    Here’s a screenshot of the modification you suggested for reference: http://cl.ly/Wvj7

    What I ended up doing for the quick fix is just duplicate “integrity-dark.css” file in /x-shortcodes/css/ and rename it “integrity-light.css”. This did work, however I don’t really like this quick fix cause the minute you guys update the plugin I’ll be out of luck and will need to do this again. Is there really no way to force it to read the dark instead of the light? In the customizer perhaps?

    #79209
    Rad
    Moderator

    Hi there,

    Thank you for writing in!

    It should be fixed by next updates, so you don’t have to worry about overwriting your quick fixes.

    For the mean time, how about try replacing this :

    $stack  = ( get_theme_mod( 'x_stack' )            ) ? get_theme_mod( 'x_stack' )            : 'integrity';
      $design = ( get_theme_mod( 'x_integrity_design' ) ) ? get_theme_mod( 'x_integrity_design' ) : 'light';

    with this :

    $stack  = ( x_get_option( 'x_stack' ) ) ? x_get_option( 'x_stack' ) : 'integrity';
      $design = ( x_get_option( 'x_integrity_design' ) ) ? x_get_option( 'x_integrity_design' ) : 'light';

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-75693 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>