../directory1/directory2/directory3/css/stylesheet.css
should get you there if I am reading your description accurately.
However, I would be very cautious using relative links in WordPress. They do not always work the way you’d expect because a lot of ‘directories’ don’t actually exist. They are fabricated by WordPress and mod_rewrite
. The two conspire to lie about filesystem structure. For example, there is no http://blog.com/category/cat-a
. A relative link on that page would be broken.
You are better off using bloginfo
or site_url
and constructing absolute URLs. site_url
would the function to prefer.
$url = siteurl('/directory1/directory2/directory3/css/stylesheet.css');
Related Posts:
- Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- How to append a URL parameter to all outbound URLs
- How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?
- How to solve ‘Eliminate render-blocking JavaScript and CSS in above-the-fold’ content for multiple files?
- WordPress Displaying Thumbnails Vertically
- Changing Font-Size based on specific Font thru javascript
- Collapsible button inside a ul list does work in jsfiddle but not in WP
- Relative path instead of absolute for wp_enqueue_script
- Can “ and “ tags be used in the HTML editor?
- JavaScript added as link/stylesheet
- Write text below a specific part of a sentence
- WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files
- Insert “javascript:void(0);” into URL
- Show enqueued CSS and Script in custom header
- How to insert html/css/javascript code to wordpress plugin
- Eliminate render-blocking JavaScript and CSS in above-the-fold content
- Style internal links based on the tags of the linked post
- Older isotope portfolio rows shifting downward by 1 pixel on hover
- How to integrate my HTML and javascript into my child theme
- Shrink Header Image on Scroll
- Removing Title From Links to Site
- How to create fa-bars animated menu
- Does costum code in the root folder get lost when wordpress is updated?
- CSS Minification
- Redirect to another page using contact form 7? [closed]
- How to add a custom CSS class to ALL links
- Why is this jquery / java script code not working in mobile / in devices?
- Seperate functions.php for part of site
- How can I get the search form to be selected automatically?
- Implementing a simple slider in code?
- Cannot set property ‘className’ of null at setThemeFromCookie
- WordPress address URL and bloginfo
- trouble with page_id & highlighting current page
- How to change “““ to “““?
- Conditionally enqueue a stylesheet based off of a javascript click event
- get_template_directory_uri() generates wrong path
- Remove CSS & JS from
- enqueing Javascript and CSS
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- ACF Pro with SlickJS [closed]
- Cannot change hover color for links [closed]
- Show/Hide Div for Login Mask
- prevent HTML output if custom field is empty [closed]
- Plugins not showing up for custom template
- Using variable to display a page with a different stylesheet
- Equal height sections in custom Headway Theme
- W3TotalCache and Javascript — what should go where, when?
- How would I create the same popup in css and javascript as the one in contact button on the site https://www.sublimotionibiza.com/es/main.html [closed]
- Combine CSS Files without plugin
- Button doesn’t work in the profile panel
- WordPress Rest Api access the header and extract stylesheets URL
- Invert porfolio item order
- How to make a function to play only on the home page?
- Embed widget from external source (Zendesk)
- Hide Tab Titles from Tabs Block
- How can I hide this custom slider while Elementor editing window is open?
- broken internal JavaScript and CSS files
- Getting and setting CSS variables with JQuery in WordPress backend fails
- How to change hover link colour for blog post (body) text only
- Problems styling a Custom Link in a Menu
- Unable to use Datepicker in a table when inserting a row
- How to properly hide the div of an inline collapsible button?
- Change the version of default style.css in wordpress
- Web Developer Console: “Slow network is detected.” with fonts
- Enqueue CSS and Script only if needeed
- How to display javascript banner in website header?
- How would I add this code to a single WordPress page?
- The placeholder text doesnt disappear
- Trouble with adding preloader to my home page index.html and index.js
- How can I add this specific link hover effect to a WP site? [closed]
- Import HTML code that loads css and javascript into specific page
- How to implement a JavaScript and CSS file for my WordPress homepage?
- What can cause JavaScript and CSS files to be minified?
- Bootstrap 4 Optimization
- Move main menu to top of screen
- How to remove audio player styles added by mediaelement.js JavaScript?
- Add “sub-nav” class to a sub menu parent item
- Interactive maps in wordpress
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- How do I add JS and CSS to WP (Flatsome)
- “Plate” theme broken after update
- Bootstrap 4 Dropdown Menu not working?
- CSS text-align not working
- How can I make Bootstrap columns all the same height?
- Align text to the bottom of a div
- Are there Gutenberg container blocks?
- Why won’t child theme’s style.css override plugin’s css
- Create a separate JS application for an individual post?
- Archive pages have smaller font then the rest of my website [closed]
- My CSS suddenly doesn’t load anymore [closed]
- How can I move my custom css to the very bottom of the head section?
- Set version number in child’s style.css file
- I want to transfer my additional css code to my theme file–?
- WordPress changing content:”” to content: "
- How to customize Metaboxes?
- Content going full width even though container is not
- Display current category without an active link in wp_list_categories
- WordPress with PageLines theme: how to change the background color of a page? [duplicate]
- Is there a way to edit the fonts of headings without a plugin (in the 2022 theme)?