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 createdcssfiles? Btw please useget_stylesheet_directory_urifor a child theme.functions.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.functions.php(in the child theme folder). This will take care for loading the parentstyle.cssand 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.