Skip to content

Instantly share code, notes, and snippets.

@moderatorwes

moderatorwes/zendesk.css

Last active Aug 29, 2015
Embed
What would you like to do?
Zendesk: Add video icon beside Title
/*Custom CSS for Video Icons on ArticleList */
.video:before{
content: "\f1c8";
color: #585858;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: none;
font-size: 18px;
}
/*Custom CSS for Video Icons on Article Page */
.video2:before{
content: "\f1c8" ;
color: #585858;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
font-size: 30px;
}
.hidden {
display:none;
}
//Find Video: replace with video icon in Article List
$('ul.article-list li').html(function (i, t) {
return t.replace('Video:', '<span class="video"></span>');
});
//Find Video: replace with video icon in Article Title
$('header.article-header').html(function (i, t) {
return t.replace('Video:', '<span class="video2"></span>');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.