Version number free CSS file

Hey team,

I use IconicWP’s Flux Checkout for a better cart/checkout experience.

By default it doesn’t show the header/footer (even if the cart/checkout page is set to that template). You have to add a function, calling the CSS file, to show it/ (More info: https://iconicwp.com/docs/flux-checkout-for-woocommerce/include-header-footer-checkout/ )

<?php

add_action( 'flux_before_layout', 'get_header' ); // Attach theme header
add_action( 'flux_after_layout', 'get_footer' ); // Attach theme footer

/**
 * Flux Checkout - Allow Cornerstone CSS file
 */
function flux_allow_custom_css_files( $sources ) {
// Add your Cornerstone's CSS file
$sources[] = 'https://nrq3almuke.wpdns.site/wp-content/themes/pro/cornerstone/assets/css/site/cs-theme.7.6.3.css';
return $sources;
}
add_filter( 'flux_checkout_allowed_sources', 'flux_allow_custom_css_files' );

And that works fine BUT as the theme css file includes the version number, as soon as this is updated, the function will be incorrect and that file won’t exist.

So I guess, 2 questions:

  1. Is there a way of grabbing that file so it doesn’t have version numbers
    or 2) if not, and I copied that elsewhere (into the child theme maybe) would it stop from updating and always be available? And would that cause any future issues?

Thanks!

Hi @RubberDuckers

Thanks for reaching out.
The files are compiled versions of CSS and come with that specified version with the name. What I can suggest is that you include the CSS file by checking the name comes with cs-theme from that specific folder. Please remember to check if multiple files with the same text are present in the folder, and that is required to add.
Please note that we really do not provide support for custom codes which means we can’t fix it in case it conflicts with something on your site nor will we enhance it. Further customization should be directed to a third-party developer or you can avail of One, where we answer the questions beyond normal theme support.

Thanks