Samples: Customizing your Embed or Whitelabel with CSS

You can use CSS to alter elements of the Live white label or embed templates. You may want to hide certain things that are part of Live’s out-of-the-box offerings, or just change the look and feel of others to better match your digital properties. Below, you’ll find ideas and sample code for the following:


Note: The code provided for these customizations is sample code used to modify Live from its out-of-the-box offerings. These are not supported features and Live is not responsible for any future depreciation or changes we make to our platform that alter the functionality of the code within. 

 

The code you’ll use will differ depending on how you’re displaying the content: via white label,embed (v7) or legacy embed (v5). We’ll specify which implementation method the code should be used for.

 

Navigation:
Manage > Templates
Menu > Setup > Templates
Permission:
Administrator | Developer


 
Removing anonymous login

Implementation: white label, legacy embed, embed v7

The CSS below will hide the box that allows users to log in to comment on your Live content by simply indicating a name. Removing the anonymous login option will force a user to log in using one of his or her social profiles in order to leave a comment.

  1. Go to the Setup > Templates page of your event.
  2. Select the template you would like to modify. For example, click White Label or Legacy Embed.
  3. Locate the Whitelabel Top HTML section and paste the code sample below. For legacy embeds, you will need to add this code to the Embed TopHTML.
  4. Click the Save button at the bottom of the page.
<style>
#LoginOptions div.Anonymous {
display:none ;
}
</style>

For embed v7

<style>
.scrbbl-tb-login-quick {
    display: None;
}
</style>

 

A white label with the anonymous login option:

Screen Shot 2014-06-20 at 2.44.43 PM

A white label with the anonymous login option hidden using CSS

Screen Shot 2014-06-20 at 2.44.27 PM

 


 
Removing “Live” text from white label page

Implementation: white label

When an event is live, a “Live” indicator is displayed on a white label. If you want to remove it:

  1. Go to the Setup > Templates page of your event.
  2. In the Whitelabel Top HTML section, add the code found below.
  3. Scroll down and select the Save button.
<style>
h2#ThreadTitle em
{
display:none;
}
</style>

Before:

Screen Shot 2014-06-20 at 2.56.15 PM

After:

Screen Shot 2014-06-20 at 2.56.52 PM