inherit
266138
0
May 3, 2024 1:09:20 GMT -8
25or6to4
132
April 2022
25or6to4
|
Post by 25or6to4 on Nov 25, 2022 12:35:39 GMT -8
Forum URL: (private) Hello,
A while back, I asked if it were possible to have the falling images for just one thread. That worked out great. Now I'm wondering if the same thing would be possible for a background. Would it be possible to have a different background for only one thread, like for a birthday or celebration thread?
Thank you.
|
|
#eb7100
1480
0
1
May 9, 2024 2:38:04 GMT -8
Craig
208,883
September 2001
cmdynasty
|
Post by Craig on Nov 27, 2022 16:24:42 GMT -8
Hi This is possible. If you make a small edit to your Forum Wrapper template, and a small addition to your Stylesheet. If you open up your Forum Wrapper, change the <body> tag to this: <body{if $[thread.id]} class="body-thread-$[thread.id]"{/if}> That makes it so the <body> tag on each thread has an id set for it which you can use to target and set a background. Add this to the bottom of the stylesheet: .body-thread-ID { background-image: url(" ABC ")!important; } Change the ID to the number of the thread. If you are unsure what the number is, it shows just after /thread/ in the url bar when viewing the thread. For example, this thread's ID is 672396. Change the ABC to the link of the image. Any problems, let me know
|
|
inherit
266138
0
May 3, 2024 1:09:20 GMT -8
25or6to4
132
April 2022
25or6to4
|
Post by 25or6to4 on Nov 28, 2022 6:30:23 GMT -8
I didn't see this. That's great. Thank you Craig!
|
|