Last active
September 20, 2017 16:13
-
-
Save jessgusclark/f3d37ea6f583f1953557654d997e471b to your computer and use it in GitHub Desktop.
Javascript code to hide content on 'sub pages' for Community Funded. Requires JQuery (kinda)
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
$(document).ready(function(){ | |
if ( window.location.href.indexOf("cfpage=") !== -1 ){ | |
// select the classes(or IDs) here that should be hidden | |
$(".images").hide(); | |
$(".intro-text").hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change lines 4 & 5 to whatever classes you want hidden when you are not on the index page.
An example of this code can be found on UNC's Crowdfunding website.