dweeda Posted August 8, 2017 Posted August 8, 2017 I put a CSS file in the /templates/styles/ folder and try to link from a published file in the /templates/ folder: <link rel="stylesheet" type="text/css" href="./styles/NavUserHdr.css"> Doesn't see the file. What am I doing wrong?
Rudy Posted August 8, 2017 Posted August 8, 2017 Hi @dweeda Try <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates; ?>styles/NavUserHdr.css"> 3
Gideon So Posted August 8, 2017 Posted August 8, 2017 Hi @dweeda, Try <?=$config->urls->templates ?>styles/yourCSSfile.css. This line output /site/templates/styles/yourCSSfile.css Gideon
Tom. Posted August 9, 2017 Posted August 9, 2017 @dweeda worth noting that you can also do $urls->templates as of 3.0.50 4
dweeda Posted August 9, 2017 Author Posted August 9, 2017 15 hours ago, Rudy said: Hi @dweeda Try <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates; ?>styles/NavUserHdr.css"> This did the trick. Thx!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now