The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Modification of Posts from Staff

View previous topic View next topic Go down

Solved Modification of Posts from Staff

Post by Ellianna17 on September 28th 2015, 12:22 pm

Hello

I would love to change the background of the posts of the staff, to send a signal signifying that they are one of the staff team immediately. Perhaps there is a coding about it? I would really love your help.

Thank you in advance!
Ellianna


Last edited by Ellianna17 on September 28th 2015, 3:20 pm; edited 1 time in total

Ellianna17
Forumember

Female Posts : 539
Reputation : 124
Language : English, Filipino, and Basic Spanish

http://winxclub.site-forums.com

Back to top Go down

Solved Re: Modification of Posts from Staff

Post by Ange Tuteur on September 28th 2015, 1:55 pm

Hi @Ellianna17,

What you can do to achieve this is add a special class to your staff's ranks. For example these tags should be added to the rank title :
Code:
<span class="st-rang"></span>

Next, add the following script.
Modules > JS codes management > New

Placement : In the topics
Code:
$(function() {
  $('.st-rang').closest('.post').addClass('st-answer');
});


Finally, you should now be able to add a custom background or color to staff posts by using the following CSS.
Code:
.st-answer > td, .st-answer + tr > td {
  background:#CFF;
}

or if you want to add an image + color, just add url() :
Code:
.st-answer > td, .st-answer + tr > td {
  background:url('IMAGE_URL') #CFF;
}

If any questions let me know. Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Modification of Posts from Staff

Post by Ellianna17 on September 28th 2015, 3:21 pm

Worked like magic. Razz Thanks, @Ange Tuteur!

Ellianna17
Forumember

Female Posts : 539
Reputation : 124
Language : English, Filipino, and Basic Spanish

http://winxclub.site-forums.com

Back to top Go down

Solved Re: Modification of Posts from Staff

Post by Ange Tuteur on September 28th 2015, 3:37 pm

You're welcome. ^^

Topic archived

Have a good day. Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum