Last active
August 29, 2015 14:15
-
-
Save moderatorwes/9f20dabd77e4257887a9 to your computer and use it in GitHub Desktop.
Zendesk: Add video icon beside Title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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