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
- How do I change/modify the_post_thumbnail(); html output?
- 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
- Get author full name
- 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?
- 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?
- One button to change all settings in theme customizer?
- Calling a method from functions.php on a click of a button
- 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 add default images into theme customizer image control?
- Remove css styles from specific page
- 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
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- What is the fastest way to load PHP functions that are only used in one theme template?
- My Own layout in WooCommerce pages [closed]
- Differences when using the the_time and the_date functions
- 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
- Setting custom canonical urls
- Trigger popup in a php if/else statement
- Add a class to the anchor tag on HTML5 gallery
- How to store data from multiple forms using ajax and php
- 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?
- 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
- Skt full width basic slideshow problem
- How do I link a button I created in theme customizer to a function?
- Trying to retrieve post meta
- Need help enqueueing webfonts
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Redirect to another page using contact form 7? [closed]
- WordPress admin-ajax.php
- Use .php file as page instead of wordpress page & template file?
- Syntax error when I try to insert my loop into an unordered list? [closed]
- How to make modifications only to certain elements of an HTML string on the server-side?
- Underscore – Self hosted fonts
- How to call multiple functions from multiple files into a WordPress page template [closed]
- Add data-id attribute to child page links
- get_template_directory adding FTP root folders in urls
- What is the best way to define constant options for a theme?
- How to make function appear in sentence?
- List post by title length
- How do i wrap woocomerce attribute in list?
- get_page_templates only return templates with “home” in the filename
- How can I use custom menus with a Bootstrap WordPress theme?
- Show different website layout if no sidebar added
- Using php inside javascript [closed]
- Need advice on theme customizer and child themes
- How to make sure relative URL works when site is not on root domain?
- WP insert post Redirect after function has executed
- how to changes mobile menu toggle breakpoint in WordPress
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Hide A Class and Add Custom HTML Code Using WordPress
- How to use data URL in WordPress?
- HTML comment cause issue in functions.php script root
- How can I prevent a shortcode div from extending beyond its boundaries?
- Remove span tags from WooCommerce Downloads page
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Menu to the right of screen on desktop using Bootstrap 4
- Automatically refresh page if widget is added to page?
- Add Text Area To Child Theme’s Home Page
- Can’t get_users info by using json_encode
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- Calling PHP function doesn’t work in index.php
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- WordPress get_post_meta issue
- WordPress HTML Helper
- Display a list of users with avatar filterable with alphabets
- Save Option on Database
- Adding php within a return statement [closed]
- How can I fix my pagination?
- Sorting Problem