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:
- 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!