93 | Posts |
I have a problem with setting image path in theme scss file. I cant use relative path "../Img/1.png" like early in css or less files. And, as I can see, new base for path calculation is "/data/_cache"/
Is it intentional? Or maybe I do do something wrong. I just want to set in "background: url(" image, that saved in folder Img inside my theme folder.
Also some sugestion. It will be great, if top menu line will be more responsive to small screen sizes. May be shorten text or use pictos? It will be usefull when testing site on phone screen sizes.
And TS 5.0 is great step to perfectness! Thanks!
2K | Posts |
311K | Downloads |
16 | Themes |
18 | Plugins |
That's not intentional. For the TypesetterCMS.com theme, I used relative paths for images. For example, this is part of my .less file:
.gpSlideWrapper > .gpSlide{
background:url('../wallpapers/1700-US476983-0.png');}
which gets changed to the following by the less compiler.
.gpSlideWrapper > .gpSlide{
background: url('/themes/x_gpeasycom_spacelab/wallpapers/1700-US476983-0.png');
Can you post a snippet of your css or less?
251 | Posts |
31.9K | Downloads |
2 | Themes |
10 | Plugins |
93 | Posts |
-------------------------------------------------
to a2exfr
yes, right now I use it this way
-------------------------------------------------
to Josh S.
in TS 4.6 I use bootswatch.less from default bootswatch theme
body{
background: url(../img/waiter.jpg) left top no-repeat fixed #000;
}
Folder "img" is in theme folder, "bootswatch.less" is in "Bootswatch" folder inside theme folder. All work great
In TS 5.0 i use style.scss from default bootswatch_Scss theme (renamed to Mebel)
Folder "Img" is in theme folder, "style.scss" is in "Readable" folder inside theme folder.
This doesn't works:
.navbar {
background: url(../Img/bg_hmn_l.png) top left no-repeat,
url(../Img/bg_hmn_r.png) top right no-repeat,
url(../Img/bg_hmn.png) top center repeat-x,
none; }
This works, but look like workaround:
.navbar {
background: url(../../themes/Mebel/Img/bg_hmn_l.png) top left no-repeat,
url(../../themes/Mebel/Img/bg_hmn_r.png) top right no-repeat,
url(../../themes/Mebel/Img/bg_hmn.png) top center repeat-x,
none; }
2K | Posts |
311K | Downloads |
16 | Themes |
18 | Plugins |
2K | Posts |
311K | Downloads |
16 | Themes |
18 | Plugins |
93 | Posts |
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More News
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using