This file contains 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
//Chage background color of Humble Squid blocks | |
$( ".category-list li:nth-child(1)" ).css( "backgroundColor", "#00628B" ); | |
$( ".category-list li:nth-child(2)" ).css( "backgroundColor", "#E6E6DC" ); | |
$( ".category-list li:nth-child(3)" ).css( "backgroundColor", "#81A594" ); | |
//Change Text color of the second block | |
$( ".category-list li:nth-child(2)" ).css( "color", "#000" ); |
This file contains 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
if (window.location.href == "https://yoururl.zendesk.com/hc/en-us") { | |
$('ul.article-list').hide(); | |
} |
This file contains 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
// Hide the Contribution Link from My-Activities | |
$("nav.my-activities-nav").find('li:nth-child(2)').remove(); |
This file contains 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
.upload-dropzone span { | |
color: red !important; | |
} |
This file contains 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
//Hide certain categories/section from HomePage using {Category_Tree}} | |
$('h2 a:contains("KNOWLEDGE BASE")').hide(); | |
$('h2 a:contains("KNOWLEDGE BASE")').closest('.category').hide(); | |
$('h2 a:contains("FAQs")').hide(); | |
$('h2 a:contains("FAQs")').closest('.category').hide(); |
This file contains 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
//Change wording of link "See all # of articles" to "click to see more" | |
$('a.see-all-articles').text('Click to see more...'); |
This file contains 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
//add message about attachment | |
$('.upload-dropzone').before("<p>**attachments must be less than 5mb</p>"); | |
This file contains 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
//Step by Step article located here: https://support.zendesk.com/entries/31041636-Show-less-than-6-articles-in-a-section-in-Help-Center | |
//Show less than 6 articles | |
if( document.location.href.indexOf('section') == -1 ) { | |
var categories = $('ul.article-list'); | |
for (var j = categories.length - 1; j >= 0; j--) { | |
var articles = $(categories[j]).find('li'), | |
nativeMore = $(categories[j]).siblings('.see-all-articles'); | |
if ( articles.length > 3 ) { | |
for (var k = 3; k < articles.length; k++ ) { | |
$(articles[k]).hide(); |
This file contains 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
h1.imageheading a, h2.imageheading a, h3.imageheading a,h1.imageheading, h2.imageheading,h3.imageheading, .section > h2,.section h3 | |
{ | |
font-size: 32px; | |
line-height: 64px; | |
padding-left: 80px; | |
} | |
.imageheading.general-icon { | |
background: #fff url(//p2.zdassets.com/hc/theme_assets/path to your image.png) top left no-repeat; | |
} |
This file contains 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
//send category links to community - Change category and google.com to your helpcenter | |
$('a').each(function() { | |
var value = $(this).attr('href'); | |
if(value=='/hc/en-us/categories/200108526-Technical') | |
{ | |
$(this).attr('href', 'http://google.com'); | |
} | |
}); |