I'm trying to locate a HTML/CSS code for "Viewer Rewards redeems" to appear on my streamlabs custom chat

I have a custom chat built up with streamlabs chat box that i am very happy with, but it doesn’t show when someone redeems stream rewards for i.e hydration, stretching etc. Does anyone know the CSS/HTML code i can add to the custom chat so it displays the rewards as well?

In case you are unfamiliar with this Viewer Rewards, it is explained here: Customer Support

Also, Streamlabs offers the streamer to create a custom chat to the channel using HTML, CSS and/or JS. I have been using both HTML and CSS so far, and while the chat works good, I cannot see the viewer rewards when someone redeems a reward, so i hope that this forum can help me out with this…“matter”.

If it’s any help for you, here’s what i have in my HTML and CSS-sections:

HTML:

<div id="log" class="sl__chat__layout"> </div>

<!-- chat item -->

<script type="text/template" id="chatlist_item"> <div data-from="{from}" data-id="{messageId}"> <div class="chatter"> <span class="meta" style="color: {color}"> <span class="badges"></span><span class="name"><span class="meta" style="color: white">&lt</span>{from}<span class="meta" style="color: white">&gt</span> </span> <span class="message">{message}</span> </div> </div> </script>

CSS:

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body{
    font-family: 'Press Start 2P', cursive;
  	background-color: #2b4a7d!important;
}
.name {
  	font-size: 1.10rem;
}
.message{
    color: white;
  	font-size: 0.85rem;
}
#log {
display: table;
position: absolute;
bottom: 0;
left: 0;
padding: 0 10px 10px;
width: 100%;
table-layout: fixed;
}

log>div {
display: table-row;
}

log>div.deleted {
visibility: hidden;
}

#log .emote {
vertical-align: center;
background-size: 0.1rem!important;
background-repeat: no-repeat;
background-position: center;
background-size: auto;
padding: 0.1em 0.1em;
position: relative;
}

log .emote img {
display: inline-block;
height: 1em;
opacity: 0;
}

log .message,#log .meta {
vertical-align: top;
display: table-cell;
padding-bottom: 0.1em;
}

log .meta {
width: 35%;
text-align: right;
padding-right: 0.5em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

log .message {
word-wrap: break-word;
width: 65%;
}

.badge {
display: inline-block;
margin-right: 0.2em;
position: relative;
height: 1.5em;
vertical-align: middle;
top: -0.1em;
}
.chatter {
    padding-top: 17.5px;
}

Any ideas on how/if i can add the viewer rewards to my custom chat, or? :slight_smile: If so, let me know. I’ll even consider tipping, if that’s required. :slight_smile:

Bump? Any ideas on this, or?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.