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]
- To close or not to close php
- Adding first / last CSS classes to menus
- How does printf( __( ) ); work?
- Return HTML Template Page with PHP Function
- Why do templates contain so many PHP tag pairs?
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- Is there a way to parse shortcodes in PHP?
- Displaying a WooCommerce product via PHP
- What exactly does “Posts page” do in WordPress?
- Check if a menu is empty?
- How to target with css, admin elements according to user role level?
- Static Frontpage Pagination – Custom loop
- Get the php template file from other theme folder
- WordPress Template Engine?
- the_author_posts_link css class
- WordPress Shortcode and Dynamic CSS
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- wp_remote_get returns an error for valid URL
- On this day PHP code
- How to loop over custom fields in a page template?
- Blank on static home page?
- “wp_enqueue_style();” don’t load new edited style
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- Need help on WordPress and php
- Multiple pages on one with different HTML
- WordPress theme & site not loading after moving files
- functions.php not adding css to website?
- Adjust the results quantity for Search Results page pagination
- Exclude pages with certain template from wp_list_pages
- wp enqueue style and style sheet depth
- WordPress Customizer not setting default value upon initial install?
- Theme Customizer – Dynamic CSS PHP File
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- Use Timber/Twig to pull an image by image ID [closed]
- WordPress loop specific thumbnail size
- Categories Template Assistance
- WordPress doesn’t include css
- Understanding child theme functions.php
- wp_enqueue_style with style.php and WordPress functions
- if file_exists not working with wp_enqueue_style
- Unable to set right time in admin and frontend template
- Easiest way to show total number of subpages
- 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
- Minify HTML, CSS, JS with PHPWee?
- Use template for posts with a particular category grandparent
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- How to display a value from a radio button in the options menu in wordpress
- How should I best target dynamically served content?
- Blank space at beginning of tag?
- Different background-image by category
- Style every second widget?
- Placing the_content inside shortcode not working
- Link to file in plugin directory from wordpress template?
- How to scale image with equal width and height without distortion?
- Password protecting content in custom template
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- How to override wp-admin styling
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- wp nav menu: add attributes to menu items [duplicate]
- Add a Second Menu to a theme that only support 1 menu
- Custom excerpt function re-factoring
- WordPress override bloginfo variable
- Inject PHP code into “sidebar-content” – code before my WooCommerce sidebar widget?
- Put CSS inside a PHP file and include it the right way
- Shortcode content output but not in correct place
- How to display user nickname (not display name) in PHP template?
- Custom Template 404 for specific custom post type
- How to properly insert a link to a template in WordPress?
- Displaying theme options in css
- Show post in slider
- Custom field value not saving when it contains a URL?
- Problem adding class to body_class
- Add a custom stylesheet for BlackBerry
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- Automatically add custom CSS to new posts using a category template
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- How Display Posts on category
- Render ninja form inside markup
- How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts
- Slider loading issue
- How can I load a PHP page without using a Template?
- Plugin CSS not enqueing
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Parent theme CSS overriding child CSS rules
- how to remove metadata from the posts of my blog?
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- how could I load a different template part by page
- How to use my style.css file outside of wordpress subdomain?
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar