Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download latest version CSS files of a theme?

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?

like image 975
Sidharth Panwar Avatar asked Mar 13 '12 10:03

Sidharth Panwar


People also ask

How do I download CSS files?

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.

How do I add a style CSS to a WordPress theme?

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' );

Where do I find CSS files in WordPress?

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.


1 Answers

why don't you create a new theme folder on each build/deploy?

Something similar to \themes\ssss-1011\abc.css.

like image 135
ra00l Avatar answered Oct 03 '22 22:10

ra00l