ErronBlack95 2 Posted February 13, 2019 Share Posted February 13, 2019 Hello webflake members. I want to ask a simple question. How can i add image in this area and for every category different image ? Here it's the demo picture what i want... http://prntscr.com/mksba8 picture from my forum, which i building now. I want to add images on category content, but i want to add in every category different images. something like this.... Link to comment Share on other sites More sharing options...
S!r.ReaDy 120 Posted February 14, 2019 Share Posted February 14, 2019 I did manage to get the image, but it shows the same image per forum. If you have any forum links that have such feature, please share so we could get it working, the site from the image doesn't seem to work This is how I got it atm. The image does repeat. .nodeList .node_1 .forumNodeInfo { background-image: url("https://cdn.pixabay.com/photo/2016/07/02/12/21/wallpaper-1492818_960_720.jpg"); } I will look further but a website example would speed up. Link to comment Share on other sites More sharing options...
ErronBlack95 2 Posted February 14, 2019 Author Share Posted February 14, 2019 i try myself yesterday, result it's the same again.. i want a like background but image it's showing on every forum... i gived example image and maybe site it's not working idk it thanks for try to help Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted February 15, 2019 Share Posted February 15, 2019 (edited) you want a different image for each right that what u saying if you use this the way i have it set it will work for your community /* Coloured Node Categories */ .block.block--category.block--category1 .block-header { background: url('https://www.site/Image/') repeat 50% 50%; color: #ffffff; } /**********/ make sure you copy each one and change this where the x is .block.block--category.block--categoryX .block-header { Edited February 15, 2019 by mr-pimpen found the answer when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
S!r.ReaDy 120 Posted February 15, 2019 Share Posted February 15, 2019 3 hours ago, mr-pimpen said: you want a different image for each right that what u saying if you use this the way i have it set it will work for your community /* Coloured Node Categories */ .block.block--category.block--category1 .block-header { background: url('https://www.site/Image/') repeat 50% 50%; color: #ffffff; } /**********/ make sure you copy each one and change this where the x is .block.block--category.block--categoryX .block-header { This doesn't work for Xen2 as far as i know. Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted February 15, 2019 Share Posted February 15, 2019 9 hours ago, S!r.ReaDy said: This doesn't work for Xen2 as far as i know. /* Categories Images and Title */ .block--categoryX .block-header { background: blue url("../images/cover-image.jpg") no-repeat center / cover; max-height: 60px; text-transform:; font-weight: bold; font-size: 20px; font-family: cursive; color: #FFF; text-shadow: black 0.1em 0.1em 0.2em; overflow: hidden; } /**********/ /* Categories Title Hover */ .block--categoryX .block-header a:hover { color: #FFF; text-decoration: none; opacity: .7; } /**********/ /* Categories Descriptions */ .block--categoryX .block-desc { color: #000; text-transform:; font-family: monospace; text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF; } /**********/ /* Categories Images and Title Responsive */ @media (max-width: @xf-responsiveMedium) { .block--categoryX .block-header { max-height: inherit; } } /**********/ this should work i tested on my forums change the x when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
S!r.ReaDy 120 Posted February 15, 2019 Share Posted February 15, 2019 7 minutes ago, mr-pimpen said: /* Categories Images and Title */ .block--categoryX .block-header { background: blue url("../images/cover-image.jpg") no-repeat center / cover; max-height: 60px; text-transform:; font-weight: bold; font-size: 20px; font-family: cursive; color: #FFF; text-shadow: black 0.1em 0.1em 0.2em; overflow: hidden; } /**********/ /* Categories Title Hover */ .block--categoryX .block-header a:hover { color: #FFF; text-decoration: none; opacity: .7; } /**********/ /* Categories Descriptions */ .block--categoryX .block-desc { color: #000; text-transform:; font-family: monospace; text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF; } /**********/ /* Categories Images and Title Responsive */ @media (max-width: @xf-responsiveMedium) { .block--categoryX .block-header { max-height: inherit; } } /**********/ this should work i tested on my forums change the x My mistake, I meant to say doesn't work for Xenforo 1.5. This person is using xenforo1.5 Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted February 15, 2019 Share Posted February 15, 2019 ight i just seen it let find it again when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
ErronBlack95 2 Posted February 16, 2019 Author Share Posted February 16, 2019 I will try it tomorrow. Thanks for share. Regards. 1 Link to comment Share on other sites More sharing options...
ajagtap 1 Posted February 21, 2019 Share Posted February 21, 2019 Was searching for the same. Let me try this at my end too. Link to comment Share on other sites More sharing options...
sztokulaaa 0 Posted March 9, 2019 Share Posted March 9, 2019 .nodeList .node_1 .forumNodeInfo { background-image: url("https://cdn.pixabay.com/photo/2016/07/02/12/21/wallpaper-1492818_960_720.jpg"); } Link to comment Share on other sites More sharing options...
Shade7 0 Posted June 1, 2019 Share Posted June 1, 2019 Great, just what I searched for. Worked for me, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts