Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Inbox text formatting; change when unread message
Topic Started: Dec 28 2017, 10:05 AM (350 Views)
borderline
Member
[ *  *  * ]
Hi,

I'd like to change the text formatting on Inbox when there is an unread message.

For instance, make it red and Italic.. is there a code for this?

thanks !
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
if (parseInt($('#menu_pm small').text(), 10) > 0) {
$('#menu_pm').addClass('new');
}
</script>
Use the class, new in your CSS to style the text.
Offline Profile Quote Post Goto Top
 
borderline
Member
[ *  *  * ]
Thank you Cory.

I added the code and on the css .new{ color: #DC143C; font-style: italic;}

while the italic is working, the color is not, it remains the same color as before.. what am I doing wrong?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
In my code, change this:
Code:
 
#menu_pm
To this:
Code:
 
#menu_pm > a
Offline Profile Quote Post Goto Top
 
borderline
Member
[ *  *  * ]
Cory, still the same after changing your code
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Does the color not change on a specific theme or multiple themes?
Offline Profile Quote Post Goto Top
 
borderline
Member
[ *  *  * ]
Cory
Jan 11 2018, 10:22 PM
Does the color not change on a specific theme or multiple themes?
I only have Zeta original and another one based on the original, I only changed the theme colours .

In any case on both the colour doesn't change
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Can you post or PM me the link to your board?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply