If you’re using an absolute reference like that, you’d want to include the full file path, like http://diginomics.com/wp-content/themes/THEMENAME/css/style.css
I believe any time you call the functions like get_stylesheet_directory() or get_stylesheet_directory_uri() it will return the path for the current theme.
Just keep in mind that all themes need a style.css file.
I would have posted this in a comment but I’m not allowed yet.
Related Posts:
- WordPress loop specific thumbnail size
- Is it possible to use the featured image of a page as a css background without inlining?
- Displaying theme options in css
- Theme Options Page – User Updates Logo
- How to modify mobile nav menu text in theme
- jQuery accordion menu
- Displaying images outside the content
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- How to print all the inline styles in the WP_Styles instance together with their keys?
- register dependency css and js inside a plugin class
- Fix hover images blink
- CSS loading as empty file in Custom Theme
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Click to expand menu
- Relative post date in recent posts list
- Sidebar doesnt get updated?
- Add CSS class to PHP Statement
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- PHP unit testing WordPress?
- List of all theme customizer control types?
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- “wp_enqueue_style();” don’t load new edited style
- Multiple do_shortcode($content) within one shortcode
- Widgets not showing in my custom theme
- Archive dropdown styling not applied
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- What is the fastest way to load PHP functions that are only used in one theme template?
- How do I access the media settings
- Can’t load WP function into external function
- Implement toggle switch for theme options in settings API
- Slider loading issue
- How can i upload images in an admin page?
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Can’t access variable outside for loop
- add custom link to wordpress media gallery modal
- Incorrect MIME type for assets with Valet
- Customize position of social icons in upme plugin [closed]
- Two queries for a WP_User_Query search work perfectly apart, but not together
- How to edit widget code to add unique class name to each div?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Use PHP in stylesheet to specify a background image based on Category ID
- WordPress admin-ajax.php
- Syntax error when I try to insert my loop into an unordered list? [closed]
- What exactly do this function declared into functions.php file of a WP theme?
- Royalty-Free Sliders used in theme development
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- WordPress wp_add_inline_style unable to give hex colors?
- How to create table in wordpress without plugin? [closed]
- zip unzip attachments in wordpress
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- wordpress admin plugin menu custom css
- WordPress get_media_embedded
- get_comments_number() returns 0
- Issue Enqueueing WordPress style.css
- Applying CSS on PHP variable [closed]
- Why the dynamic_sidebar() call is putted into an ul tag?
- Need advice on theme customizer and child themes
- Toolbar Hidden in a Virtual Page
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- Timber right sidebar in WordPress theme
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- How to Remove Theme Style CSS inside Custom Plugin?
- Header is not displaying on certain pages of wordpress theme [closed]
- Add other class content with reference class value
- Adding Custom css file in the wp-uploads directory with custom php functions
- How do I integrate vanilla Javascript to a wordpress website?
- How to change PHP variables with AJAX request in WordPress
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- Looping through dummy posts and showing them in the main index.php
- WordPress Slider is not working
- How to display post meta bellow every posts
- Add Shortcode to ::before class
- Warning: count(): syntax problem of the count () function
- Customizer: How to Sanitize a Decimal Number Range
- PHP code printed into CSS classes
- Get the image title and alt from custom query
- Displaying POST content with HTML tags and all
- What syntax is this? “{{post.price}}”
- Custom Thumbnails [closed]
- WordPress get_post_meta issue
- wp add inline style in loop
- Display pages from specific page template
- How to add button to top of theme customizer?
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- How to NOT override inline css rules
- Load files content [closed]
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Twig+WordPress how to use array arguments inside a function?
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- How to store the_post_thumbnail() value in a variable
- Woocommerce Convert existing order to the cart
- WordPress PHP8 Critical Error in class-wp-widget.php
- How to create different templates for woocommerce single-product.php?