Enqueue the files like they should be enqueued and HTTP(S) won’t be a problem.
You can enqueue files properly witht he following example code
/**
* Enqueue scripts
*
* @param string $handle Script name
* @param string $src Script url
* @param array $deps (optional) Array of script names on which this script depends
* @param string|bool $ver (optional) Script version (used for cache busting), set to null to disable
* @param bool $in_footer (optional) Whether to enqueue the script before </head> or before </body>
*/
function theme_name_scripts() {
wp_enqueue_script( '$handle', '$src', array( 'jquery' ), false, false);
wp_enqueue_style( $handle, $src, $deps, $ver, $media );
}
add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );
Related Posts:
- Find proper “text domain” within theme
- Are theme .php files stored in the database?
- Web site Header tag links some resources with HTTPS
- After changed url from http to https, it says “This site can’t be reached”
- How exactly does WordPress load themes from api.wordpress.org?
- how make wp include urls as https?
- Using OOP in themes
- How can I allow the Editor Role to change Theme Settings?
- Best way to include Bootstrap in WordPress
- Why is WordPress redirecting from http to https on a local environment?
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Switch from https back to http
- Editing Links in the Footer of WordPress Themes with Base64 Encrypted Code?
- Display custom_background outside wp_head()
- register_theme_directory and broken deploys
- switch a theme different per user role
- How to make alert for new version on theme options?
- Can we create a child theme for a premium child theme built on Genesis framework?
- WordPress ignoring specified template for front page. Why?
- Migrating October CMS to WordPress
- Change logo on each page of University Hub theme [closed]
- Delete database tables on theme uninstall?
- Why are my sidebars not registering in unit tests
- get_template_directory has an odd functionality
- Theme editor not showing correct index.php
- How to start learning CSS and theme development?
- How to set different settings for a mobile theme?
- How to set a single theme directory on a multisite blog?
- PHP Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line 230 [closed]
- What’s the proper way to include inlined javascript-source?
- Create register form without a plugin
- Retina JS not working
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- wp_add_inline_style() not working?
- JavaScript Files Registered in Parent Theme Won’t Load When Calling wp_enqueue_script() in Child Theme?
- WP can’t create new directory
- Is it possible to create child themes using the WordPress Dashboard?
- All content is HTTPS, but browsers warn of HTTP mixed content [closed]
- Can I use wordpress themes without wordpress?
- Need help with making a website where user can add products
- Determing number the query ran by core wordpress
- Preserve theme settings when migrating from local to live
- Unable to access wordpress login.php [closed]
- What is the “pub” theme? [closed]
- Can I change the WordPress default color?
- Enqueue custom css file on specific page
- How to put single-***.php in a specific folder?
- Recommended Media Size for Twenty Fourteen
- for my current theme( own custom ) the default menu options are disabled in wp-admin?
- Most wp_nav_menu parameters ignored
- Is a very simple theme secure enough?
- New WordPress Theme Not Showing in Blog
- A wordpress site keeps editing wp-content files after migration
- Switching Theme and back will reset the previous Theme’s settings?
- Using Grunt and keeping theme comments
- Where did my Theme Editor go?
- Blackberry mobile theme redirection
- What’s the easiest way of adding more options in the Theme Options of the twenty eleven theme?
- Fix warning: Missing argument
- My first WP development project – am I envisaging this right?
- How can I fetch the next level of the currently selected main menu (hierarchical menu)?
- I’ve got a theme I can’t update and won’t let go
- Make theme settings support multisite enabled (WordPress Mu) site
- Is there any way to modify images from a theme using the web interface?
- Removing basic header/text elements from a theme
- Best way of creating a website with multiple themes/languages
- how to get json file in wordpress template
- Website Theme Flickering in Chrome
- Enqueue All Stylesheets Found In a Theme Folder
- Problem: Fatal error worldpress theme
- style.css of my custom theme is not being applied at all
- The function is deprecated; use mysql_real_escape_string() instead
- Navigation Bar displays vertically on Mozilla
- WordPress loads old style.css, then loads current one
- Warning: call_user_func() expects parameter 1 to be a valid callback
- Changing themes on locally hosted webpages
- Changing admin Textarea to integrated WP editor
- Line break no working on theme
- What is the template file for topic layouts in bbPress?
- Style of a theme
- Orion theme (from theme forest) [closed]
- QA/Staging envirnoment for wordpress sites
- Showing wordpress theme demo at front end
- Diagnosing a connection reset problem
- Customising a theme
- Blog shows up without Theme/CSS styles
- Boldy theme – Regarding the images above the boxes
- Symbolic Links for themes – linking one theme to many wordpress installs
- Fatal error: Call to undefined function get_header() and BuddyPress [closed]
- hardened wordpress linux install
- Duplicator live to wamp https to http
- which theme is this? [closed]
- JQuery Error in theme for .live is not a function [closed]
- How can I either move the nav bar down or create more space for the header? Theme – Ajaira
- Using AJAX to Update WordPress Theme
- Absolute and relative paths
- Best way to redirect all HTTP to HTTPS in IIS
- Get header/footer list for a theme
- Help!!! Old theme doesn’t load scripts and conflitcs with plugins
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?