CSS links are relative to the current request URI, not your PHP file. Use an absolute path like:
<link rel="stylesheet" href="https://wordpress.stackexchange.com/questions/184258/<?php bloginfo("template_url' ) ?>/themesubfolder/style.css" />
Related Posts:
- Is it possible to use the featured image of a page as a css background without inlining?
- An unwanted inline style is added to my body tag
- Removing WordPress Footer -without access to PHP code?
- Post repeated when opening in overlay, how do I solve this? [closed]
- Displaying a WooCommerce product via PHP
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- wp_remote_get returns an error for valid URL
- Exclude pages with certain template from wp_list_pages
- Theme Customizer – Dynamic CSS PHP File
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- Categories Template Assistance
- Want to create Child theme, but already edited Parent theme css files and some php files
- Switching between custom templates in a post type of the admin menu
- Use template for posts with a particular category grandparent
- Placing the_content inside shortcode not working
- wp nav menu: add attributes to menu items [duplicate]
- Put CSS inside a PHP file and include it the right way
- Missing sidebar parameter “fix” – before_content
- Automatically add custom CSS to new posts using a category template
- How can I load a PHP page without using a Template?
- Plugin CSS not enqueing
- How to use my style.css file outside of wordpress subdomain?
- Can I install/embed WordPress on a ‘single page’?
- How to design a table based on css values set from admin/dashboard
- code is skipping a div
- Best way to schedule daily change in CSS parameter
- How do I add a custom css to all posts without affecting homepage css? [closed]
- proper way to add css using functions.php?
- Automatically set all tags to have a height of 0 if there is no content inside the tag [closed]
- Create a Blog Template Page
- RTL Stylesheet Confusion with WordPress
- Correct way to enqueue page specific CSS file
- Wrapping a Sidebar within
- WordPress template page name displayed on screen
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- How to make container class in PHP
- How to call multiple functions from multiple files into a WordPress page template [closed]
- PHP in CSS file?
- Last class on last headline?
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- Adding conditional text to a PHP Shortcode Template
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to Change CSS Colors from Custom Plugin Settings Page
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Get ACF options field in PHP acting as CSS
- add_filter function concatenate string and locate_template function
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- Link to page with posts of specific type
- Splitting the_content() by size?
- Conditionally load class in the comment section of the post page
- php loading different structure than source code
- Using theme options to change a border-radius value
- Displaying images outside the content
- How to put search bar & logo in the “primary navigation” storefront theme?
- Applying css in functions.php
- How to add a CSS class to this php code [closed]
- Require()/Include() post template adding extra content
- PHP function for horizontal Woocommerce thumbnails and badges
- Use CSS tag inside PHP code
- Change the “Show All” button in a WordPress Portfolio Filter
- My top header looks different on single pages but is fine on the home page
- Using php code inside style tag
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- Warning: Use of undefined constant all – assumed ‘all’ (this will throw an Error in a future version of PHP) in C:\Users\…….. on line 6
- Drop down question
- How to print all the inline styles in the WP_Styles instance together with their keys?
- The style.php file inside theme-engine folder has other content on FTP
- Replace header with large image on home page only, using Genesis child theme
- Site title not showing. Please help me
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Hot to edit WooCOmmerce dashboard?
- How to display last whole post on the homepage
- Add class for the_post_thumbnail_caption()
- Target a specific container to style on WordPress storefront theme
- How to include different html tags in the header for different pages?
- Font-Family does not looks like how it should be [closed]
- Add point on excerpt post
- Custom Theme, Editor won’t wrap text (i.e. change width)
- Click to expand menu
- How to add style in functions.php depending on conditions?
- WooCommerce – Print Processing orders [closed]
- Loop returns more items than exist?
- Modify arguments for parent theme’s `wp_register_style` via child theme
- Hide button based on PHP result
- How to have Function of a plugin using global vars into a shortcode?
- Child theme not working properly
- WordPress – Image href for home menu nav not working
- WP_Nav Highlight Parent Issue
- Cant get theme to change footer color through theme customizer
- Changing 2011 theme header image based on user dropdown
- How to change a specific character in a theme option value – replace a space with a plus sign
- If I define a variable in header.php, how do I make it available to templates?
- How do I get Roboto Google Font to display normal font-style? [closed]
- Using PHP for background-image property [closed]
- New to wordpress. Need Help with templates [closed]
- Parse error: syntax error, unexpected ‘}’ in
- WooCommerce Checkout Cart [closed]
- why css file not link?how to create permalink?
- Using Featured Image as Hero Background in Word Press