-
AuthorPosts
-
dmontpe Friend
dmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 18, 2014 at 7:42 pm #201441Hey guys,
I am trying to add a background image to a module but I don’t seem to get the path right. I know I’ve got the right spot to add the code because I am able to change the background color but when I try to add the url(“my-image-path”) part, nothing changes. I’ve placed the image in the templates/purity_iii/images/ folder. What should I write as the url?
Thanks.
David
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 7:51 pm #550085What is the image path you are writing within the relative CSS code for the module?
Also, it would be helpful if you could provide the url of the site you’re working on – as well as identify the particular module to which you refer.
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 18, 2014 at 8:16 pm #550088Hi Tom,
I’ve tried all I could think of: “/images/prueba_verde.jpg”, “prueba_verde.jpg”, “./images/prueba_verde.jpg”, I even tried the full url.
What I’m trying to change is the slideshow class. Here’s the url: http://pensarparacrecer.com/tstgr/public. (Yeah, I know it’s an ugly url but it’s just for testing 🙂 )
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 8:21 pm #550090So for which module are you trying to set images?
Are you trying to set a background image for the large (currently purple) area within which you currently have your slideshow?
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 18, 2014 at 8:30 pm #550092Yes, that’s right. Module was the wrong word, actually.
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 18, 2014 at 8:41 pm #550094By the way, since I posted the url and you can see the site, I’ll ask you this. I noticed that when I close the sidebar, the megamenu “jumps”. Is that a bug or has something to do with the way my site is set up?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 8:49 pm #550096I’m thinking you had your image written wrong . . . . try the following:
If you haven’t yet done so, create a new file called “custom.css” within file path –> /templates/purity_iii/css/
Within that custom.css file, paste the following CSS rule:
.corporate .slideshow {background: url("/tstgr/public/templates/purity_iii/images/prueba_verde.jpg") repeat scroll 0 0 #4e5fa3;
border-bottom: 1px solid #eeeeee;
padding: 40px 0;
}SAVE CHANGES – CLEAR CACHE – REFRESH PAGE
Is that what you were going for ??
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 18, 2014 at 9:51 pm #550099No luck, Tom. It’s weird, though. When I was trying by myself, I made the change straight in the corporate.less file. As I said, color changes were applied but no image. However, now that I added the code to the custom.css file, not only the image doesn’t show up but I have also tried a different color and it doesn’t change either. It’s like the custom.css file is not being read.
Any ideas?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 9:52 pm #550100Do me a favor – temporarily set “Optimize CSS” to “Off” within your Template Manager–General settings.
Let me know when you’ve done this.
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 18, 2014 at 10:28 pm #550104I’ve got Development Mode on so Optimize CSS is already off.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 10:29 pm #550105<em>@dmontpe 446481 wrote:</em><blockquote>I’ve got Development Mode on so Optimize CSS is already off.</blockquote>
Switch Development Mode off – for now
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 18, 2014 at 10:37 pm #550106Development mode off.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 10:43 pm #550107Okay, Try This . . . .
Within file path —> /templates/purity_iii/local/css/themes/purple/layouts/corporate.css
at line 1, modify as follows:
.corporate .slideshow {
background: url("/tstgr/public/templates/purity_iii/images/prueba_verde.jpg") repeat scroll 0 0 #4e5fa3;
border-bottom: 1px solid #eeeeee;
padding: 40px 0;
}SAVE CHANGES – CLEAR CACHE – REFRESH PAGE
Is that what you were going for ??
1 user says Thank You to TomC for this useful post
dmontpe Frienddmontpe
- Join date:
- March 2011
- Posts:
- 24
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
September 19, 2014 at 10:08 am #550161It worked, Tom. Thanks a lot. Now I just need to tweak around a bit more.
One question, though. Would a change made in that file carry over to the next template update.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 19, 2014 at 3:27 pm #550181<em>@dmontpe 446549 wrote:</em><blockquote>It worked, Tom. Thanks a lot. Now I just need to tweak around a bit more.
One question, though. Would a change made in that file carry over to the next template update.</blockquote>
It may not . . . . However, if you want to customize one theme in this template and don’t want to loose these custom work when updating template, you can customize any theme via: /templates/purity_iii/local folder.
We’ve recently implemented a new feature in new version of T3 framework so that customer can add custom work in a folder which can’t be affected when updating template. You can check out this documentation for more information: http://t3-framework.org/documentation/new-features#isolate-template
-
AuthorPosts
This topic contains 15 replies, has 2 voices, and was last updated by TomC 9 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum