Support Forum

How to put an imagen in the UserSection?

AL Aitor Ruiz Lorenzo
Aitor Ruiz Lorenzo
Member

Hi again, I would like to place an image desvancida the user when published. But only when you publish a content administrator. I’ve already got at the entrance, but not in the bar “UserSection”.

as.jpg

I´m working under the Default template and CSS stoy using the following code:

# spMainContainer. spTopicPostSection. spType-Admin. spUserSection spLeft {

background-image: url (/ wp-content/themes/explicit/images/perfil_administrador.png);
background-repeat: no-repeat;
width: auto, height: 100%;

}

I do not know if I’m mistaken class. Thanks in advance.

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Well I would try and change the class names there. The full point goes at the start of each class not the end. So start by sorting the class names and then see how it goes.

AL Aitor Ruiz Lorenzo
Aitor Ruiz Lorenzo
Member

Yellow Swordfish said
Well I would try and change the class names there. The full point goes at the start of each class not the end. So start by sorting the class names and then see how it goes.

#spMainContainer .spTopicPostContainer .spType-Admin .spUserSection spLeft {

background-image:url(/wp-content/themes/explicit/images/perfil_administrador.png);
background-repeat:no-repeat;
width:auto;height:100%;

}

I used this code, but continue without show anything…

YS Yellow Swordfish
Yellow Swordfish
Member

Ah sorry  that .spLeft shouldn’t be there. That is a utility class for floating objects left. Just use:

#spMainContainer .spTopicPostContainer .spType-Admin .spUserSection

although be warned that there is some padding in there.