Jump to content

How can i add picture at category description ?


ErronBlack95

Recommended Posts

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....

Fdo03Hc.png 

Link to comment
Share on other sites

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");
}

Screenshot_2.thumb.png.1271c9014fabe5b31763b653983834ed.png

I will look further but a website example would speed up.

Link to comment
Share on other sites

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 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

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

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

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

  • 3 weeks later...
  • 2 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...