Mapping local css urls to hubspot foldersSOLVE
May 15, 2017 11:39 AM
So I have a big local CSS file. This CSS files includes lots of references to background images and such. These are all hard-coded in the file as relative paths.
I have replicated the file structure inside HubSpot. However, these relative paths do not work and the images do not appear.
This is a project under development so the code is changing daily, thus it is not feasible to go in and manually change the image references everytime a new CSS file is provided.
Is there a way to have these relative image paths be understood by Hubspot?
Solved! Go to Solution.
May 15, 2017 1:24 PM
@A2mun no, hubspot automatically adds the "hubfs" to the beginning of all your files. If you want the relative paths to work so you can work locally and push to the server without any hiccups, you'd want to create the hubfs folder in your local environment. If you don't need a local environment, then all you need to do in your CSS file is add the "/hubfs/" to the beginning of all your image/font urls.