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
.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 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
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
//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
//Change wording of voting controls if article is in a certain category | |
if ($('.breadcrumbs li:nth-child(2) :contains("Technical")').size() == 1) { | |
$('.article-vote-question').text("Do you like this"); | |
} | |
else{ | |
$('.article-vote-question').text("Was this article helpful"); | |
} |
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
//Remove author from articles | |
$(".article-author").first("a").html( | |
$(".article-author").first("a").html().replace("Inactive Agent", "Support Team") | |
); |
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 text of Promoted Articles | |
$("h3:contains('Promoted articles')").text('Important Information'); |
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
// Removing the article dropdown | |
$('.article-list a[aria-selected]').removeAttr('aria-selected').removeAttr('data-asynchtml-ressource') | |
}); |
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
//Hiding the 5th and 6th so only 4 will show | |
$( "section.related-articles li:nth-child(5)" ).hide(); | |
$( "section.related-articles li:nth-child(6)" ).hide(); |