HansSchouten / PHPageBuilder

A drag and drop page builder to manage pages in any PHP project
https://www.phpagebuilder.com
MIT License
739 stars 180 forks source link

theme's css file doesn't load #29

Closed dsultanr closed 3 years ago

dsultanr commented 4 years ago

@HansSchouten Need your help again

image

as I understood correctly I have a link in my "themes/main/layouts/master/view.php"

<link rel="stylesheet" href="[theme-url]/css/style.css" />

and style.css file located at themes/main/public/css/style.css

but browser shows nothing on this link: https://mysite/themes/main/css/style.css

any thoughts?

here is my tree image

dsultanr commented 4 years ago

I have the "themes" folder in my Laravel project's root. Not in public folder. Seems that it should be inside a webroot folder (public)?

HansSchouten commented 4 years ago

Hmm strange, this is indeed how I am using it. Maybe an issue with your .htaccess file? It should point asset requests to the public folder of your theme. And is your themes folder in the project's root folder?

dsultanr commented 3 years ago

yep, I did not alter the .htaccess file. thanks