Am using the WP Offload S3 plugin and not able to offload the CSS and JS files within the themes folder. Am trying to use wp_enqueue_style() like below in wp-content/themes/spark/functions.php
wp_enqueue_style( 'validationEngine.jquery', get_template_directory_uri() . '/assets/css/validationEngine.jquery.css', array(), false, 'screen' );
wp_enqueue_style( 'main', get_template_directory_uri() . '/assets/css/main.css', array(), false, 'screen' );
Am not able to offload the files. Please let me know what am I missing here.
Regards, AG
wp_dequeue_style()
( see codex ) before you enqueued the styles again, or are these own createdcss
files? Btw please useget_stylesheet_directory_uri
for a child theme. – Charles Jun 29 '16 at 14:18functions.php
. Wish to change some in a parent template file? Copy that file into child theme folder and make there your changes. This way you can be sure that when updated(by author) your changes still remain save in the child theme files. Note read always change log files(of the parent theme) before you update a parent theme, to be sure it won't interfere with your own function(s) in the child theme. – Charles Jun 29 '16 at 23:41functions.php
(in the child theme folder). This will take care for loading the parentstyle.css
and your changes made in your child themestyle.css
(if made any). But thats all I can say(This is kinda off-topic when it is about your question) about how to use child theme. – Charles Jun 30 '16 at 3:06