As said, you should enqueue your style sheets like this in your functions.php in your theme:
function adds_to_the_head() { // Our own unique function called adds_to_the_head
wp_register_style( 'custom-style-css', get_stylesheet_directory_uri() . '/css/styles.css','','', 'screen' ); // Register style.css
wp_enqueue_style( 'custom-style-css' ); // Enqueue our stylesheet
}
add_action( 'wp_enqueue_scripts', 'adds_to_the_head' );
Related Posts:
- Function to return true if current page has child pages
- List of all theme customizer control types?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Is there a hack for using is_page() within the function.php file?
- Where can I find the declaration of `$_wp_theme_features`?
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- How to add button to top of theme customizer?
- Add multiple HTML attributes to an Elementor button
- Why have on every line
- How do I change/modify the_post_thumbnail(); html output?
- start_lvl Ignored in Custom walker_nav_menu
- Cleaning up WordPress to improve performance?
- Proper use of Output Buffer
- Include a external PHP file into a WordPress Custom Template
- Modify previous and next text from pagination links
- Need help setting default setting value for radio button in theme customizer
- Get author full name
- How to remove hardcoded characters from playlists?
- function_exists call in function.php
- How to preserve PHP modifications while upgrading WordPress?
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Debugging an error: wp_enqueue_style was called incorrectly
- How to get the registered sidebar’s name by its id?
- is there a simple way to list every templates / php files used to generate a specific page?
- Dynamically change feature image in customiser
- One button to change all settings in theme customizer?
- Calling a method from functions.php on a click of a button
- Change comments form title on a page by page basis
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- How to use SRCSET with get_the_post_thumbnail()?
- Setting up the child theme so as to enable right-to-left WordPress?
- Design view breaking on Pages
- delete an array element when its date expires
- Understanding WordPress child theme custom JS loading
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- How to add default images into theme customizer image control?
- Remove css styles from specific page
- Is the regular ajax request method safe or I should use admin-ajax.php?
- Overriding a theme redux file in child theme
- Widgets not showing in my custom theme
- How do I list the_tags() into HTML data-attribute
- HTML table from shortcode with multiple parameters
- Can I change a variable in a content part while calling it?
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- How to break down importing of feeds
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to display recent posts on home page with custom HTML
- What is the fastest way to load PHP functions that are only used in one theme template?
- My Own layout in WooCommerce pages [closed]
- Placing raw HTML inside a WordPress shortcode
- Differences when using the the_time and the_date functions
- PHP can I add line numbers to file_get_contents()
- Slide in Panel WordPress Post
- Shortcode content output but not in correct place
- Can’t load WP function into external function
- Displaying theme options in css
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Removing unneccessary p-tags (Not every p)
- Set WordPress Default Template
- Setting custom canonical urls
- Trigger popup in a php if/else statement
- Customizer: Output default value in Customizer CSS
- Add a class to the anchor tag on HTML5 gallery
- Load a page into a div with Ajax
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- How to remove the cufon script from Dzonia Lite theme [closed]
- Populate dropdown with Child Pages based on Parent Page chosen
- How to store data from multiple forms using ajax and php
- How do I add custom bulk actions to multiple custom post types?
- How to check if a meta value has already been assigned to any user?
- what is the best practice to add new field to an api route
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Use DOMDocument with ob_start breaks my HTML code
- How to pick the default selected value in wordpress dropdown?
- Error in custom php function doesn’t exist
- Customizer: active_callback and sanitize_callback incompatibility?
- Populate editor with some content of a page with a page template
- Customize position of social icons in upme plugin [closed]
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
- How to get the value of input hidden html from text editor to custom page template?
- Menu jumping when calling it via PHP
- Modify custom field input data before creating a new post
- Skt full width basic slideshow problem
- Add .htm extention to a custom taxonomy
- How to disable controls in theme customizer?
- How do I link a button I created in theme customizer to a function?
- Trying to retrieve post meta
- Need help enqueueing webfonts
- Is there a way to conditionally check whether a WordPress post title is empty?
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Check if values exists DB