The problem is like this: We're trying to implement a versioning scheme for our CSS and wherever we have accessed CSS through href (like \themes\ssss\abc.css) we append this link with a build number programatically (such as \themes\ssss\abc.css?1011) so that with new build the client gets the latest css files.
The problem is coming in themes. For e.g. under App_Themes we created a theme folder with the name MyTheme; now wherever this theme is used we need the CSS for this theme to be replaced by latest build files. How to do that?
right click, view page source, look in the head tags for the css file then add it to the end of the webpage. you would paste that name and location to the end of the website.
The best way to include your styles. css file is to add the following code in your themes functions. php : function themename_enqueue_style() { wp_enqueue_style( 'themename-style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'themename_enqueue_style' );
Go to wp-content > themes > YOUR THEME NAME and try to finder a folder that houses the css files. They are usually named CSS stylesheets or styles. You can then choose to download it and edit with a text editing program on your computer. After editing, head to the same directory you found the CSS files and hit upload.
why don't you create a new theme folder on each build/deploy?
Something similar to \themes\ssss-1011\abc.css.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With