-
AuthorPosts
-
amir00251 Friend
amir00251
- Join date:
- January 2011
- Posts:
- 113
- Downloads:
- 38
- Uploads:
- 13
- Thanks:
- 13
- Thanked:
- 11 times in 1 posts
September 14, 2013 at 12:24 pm #190602Hello,
I have before asked and resolved changing and adding more background images for the category blog backgrounds.
It looks very boring to have one single background image also repeating in different components such as kunena, projectforks, etc
So I have added below css for all pages of Kunena Forum (through advanced module manager)
body{
background: #fff url(“../../templates/ja_smashboard/images/body-bg-2.jpg”) repeat !important;background-size: cover !important;
}
This works on all Kunena main pages and categories but when I go to add New Topic page, I get all white background. When I check the css on the page, it does include the above code but still it all white.
Should I make any change for the above css code?
Thank you.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 16, 2013 at 8:11 am #505902So that I can take a look and try to assist, please provide the url of the site you’re working on
amir00251 Friendamir00251
- Join date:
- January 2011
- Posts:
- 113
- Downloads:
- 38
- Uploads:
- 13
- Thanks:
- 13
- Thanked:
- 11 times in 1 posts
September 16, 2013 at 6:04 pm #505983Thanks, message sent.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 17, 2013 at 5:16 pm #506125<blockquote>So I have added below css for all pages of Kunena Forum (through advanced module manager)
body{
background: #fff url(“../../templates/ja_smashboard/images/body-bg-2.jpg”) repeat !important;background-size: cover !important;
}</blockquote>
You need to find and change css style above.
From
body{
background: #fff url("../../templates/ja_smashboard/images/body-bg-2.jpg") repeat !important;
background-size: cover !important;
}
Change to
body{
background: #fff url("http://your_domain.com/templates/ja_smashboard/images/body-bg-2.jpg") repeat !important;
background-size: cover !important;
}
Let me know the result
amir00251 Friendamir00251
- Join date:
- January 2011
- Posts:
- 113
- Downloads:
- 38
- Uploads:
- 13
- Thanks:
- 13
- Thanked:
- 11 times in 1 posts
September 17, 2013 at 6:20 pm #506135Hello, this seems to have solved the problem, what can I do to avoid using direct domain in here? Thank you.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 18, 2013 at 6:05 am #506182<em>@amir00251 389966 wrote:</em><blockquote>Hello, this seems to have solved the problem, what can I do to avoid using direct domain in here? Thank you.</blockquote>
Yes, you can try to use another way
Open templates/ja_smashboard/css/custom.css file
Add new script
body{
background: #fff url("../images/body-bg-2.jpg") repeat !important;
background-size: cover !important;
}
With background path: templates/ja_smashboard/images/body-bg-2.jpg
amir00251 Friendamir00251
- Join date:
- January 2011
- Posts:
- 113
- Downloads:
- 38
- Uploads:
- 13
- Thanks:
- 13
- Thanked:
- 11 times in 1 posts
September 21, 2013 at 12:31 pm #506565There are two possible issues and questions:
1- Is there any way of making above code specific for a component, If this was not possible then I cannot use this in custom.css
body{
background: #fff url(“../images/body-bg-2.jpg”) repeat !important;
background-size: cover !important;
}for example add something that would only apply this code in Kunena Forum?
2- Even if I put the code suggested with full URL, when I get into add new topic page of Kunena, for 0.1 second I get the default body-bg.jpg background and then changes to body-bg-2.jpg.
Which is not nice because user can see the default template even for a very short time untill css override makes effect and changes to body-bg-2.jpgA solution for this for the code to be implemented in first order would be good.
Thank you
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 22, 2013 at 5:23 pm #506635You are right in this case, you can try to use the first solution here but you need to change it
From
body{
background: #fff url("../../templates/ja_smashboard/images/body-bg-2.jpg") repeat !important;background-size: cover !important;
}
Change to
body{
background: #fff url("/templates/ja_smashboard/images/body-bg-2.jpg") repeat !important;background-size: cover !important;
}
amir00251 Friendamir00251
- Join date:
- January 2011
- Posts:
- 113
- Downloads:
- 38
- Uploads:
- 13
- Thanks:
- 13
- Thanked:
- 11 times in 1 posts
September 23, 2013 at 8:40 am #506708Thanks, I have now got some more info and can now say I am happy. Just as an example for Kunean, I put below in custom.css
.com_kunena body {
background: #fff url(“http://www.domain.com/images/background-images/body-bg-forum.jpg”) !important;
background-size: 100% !important;
background-attachment: fixed !important;
background-repeat: no-repeat !important;
}you can use either full url or relative url, both will work.
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by amir00251 11 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum