Per comments get_stylesheet_directory_uri()
gets the current template (child in this case) directory, eg
// Load our main stylesheet.
wp_enqueue_style( 'less-style', get_stylesheet_directory_uri() . '/css/style.less' );
Related Posts:
- linking stylesheets and scripts with functions.php
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Enqueueing a code block from an options framework
- Execute only on a certain page
- Adding tawk.to code just before body tag on functions.php file
- How to enqueue CSS and JS only on specific template?
- Deregistering a script in WordPress seems impossible
- Need help enqueueing webfonts
- responsive.css in the WordPress should be prioritized
- How to change menu labels
- jQuery code not working when included in functions.php
- Is the wp_enqueue method efficient?
- get_template_directory adding FTP root folders in urls
- Enqueing External JS on the remote server JS
- child parent styles enqueue order
- How to make a cookie be on the whole site instead of being on a specific page/
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- Enqueue assets from multiple directories using add_action/do_action
- How to change order inside foreach using wp_enqueue_script?
- Call a single function on two different methods with hooks
- Enqueue sripts and styles only if function is called
- Load script and styles using an array of resources
- Chosen Select jquery Not Working in Plugin
- How can I print out a single stylesheet or javascript link?
- Adding Gravity Form With if(is_page) Is Not Working
- wp_enqueue_style conflict when using in different action hooks
- Warning: filemtime(): stat failed for wp_
- functions.php doesn’t load all custom theme assets
- start_lvl Ignored in Custom walker_nav_menu
- Enforcing password complexity
- How do I make my function add variables/values to the $post object?
- Check if a menu is empty?
- Calculate percentage of post by category
- Dynamically change feature image in customiser
- Change comments form title on a page by page basis
- Creating wordpress user registration form
- Get the title before comma
- category not display in word press grammatically
- display most popular tags in two columns
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- Use is_product_category() properly
- Add before_content and after_content to register_sidebar
- How to access function from outside of a class within this class in WP plugin?
- PHP can I add line numbers to file_get_contents()
- Changing Woocommerce flat rate every nth number of items
- Convert all images to PNG on file upload
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- Replace word in “the_content” only for index.php
- Custom location for attached images
- Using fwrite() and “a” appends multiple times instead of once
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- How to display posts by current user in a drop down
- How do I add custom bulk actions to multiple custom post types?
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- Keyword checking in Gravity Forms
- how to refresh div on template part?
- How to change menu order item
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- Widget back end radio button issue
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- GET problem in WordPress
- Help with WordPress function inside a shortcode
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- CSS change in woo commerce Place Order Text [closed]
- WP All Import / Update stock quantity from multiple XML files
- using wp enqueue style to create a CSS file specifically for a page template
- How to style injected code in header section?
- Hide a div when a custom field is empty
- SQL error with custom query
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Why would the child theme load in the Customize preview, but not on the site itself?
- Advanced method to control cache of enqueued style/script
- How to change basename url for wp-admin?
- How to exclude meta no index pages from wp_list_pages
- Products listing check if meta checkbox is checked
- How to preload header logo image in WordPress? like what’s the code and where do I put it?
- Hide a div if the fiels is empty
- Illegal string offset checkbox
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Custom plugin: how do I call a PHP file if settings option is set to true?
- Edit a function to take different actions based on user role
- How to put 2 php codes in functions.php without site crashing
- I got big white screen when i attach main style sheet of Html in functions.php
- Using Javascript On Page – Header and Footer Now Missing
- Unzip_file causing Media file upload error
- WP HTTP API call response
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Escaping a Single Quote in str_replace for Nav Function
- Private messaging – Getting and displaying the avatar/url of a message recipient
- insert thumbnail image from php script
- WordPress rating by views [closed]
- Trying to see if page is category or single and displaying title with appropriate heading tag
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Fix My Custom Function: Remove Automatic
- WP Debug enabled Undefined index error in a widget
- A better way to write this php function
- How to limit the number of posts in the wordpress loop in conjunction with the “download more” button?
- Need help with conditional logic for menus
- Custom Admin Menu Report for Specific User ID