Quantcast
Channel: All Discussions - Cargo support
Viewing all articles
Browse latest Browse all 867

Hide custom html div on homepage.

$
0
0
I have been using the code laid out in this thread on my page.

http://support.cargocollective.com/discussion/7053/div-on-one-page/p1

However, I would like to have some div's do the opposite; Show on project pages but not on the homepage. Swapping the code from the above thread is not working for me. Here is what I have been trying:



<script type="text/javascript">
$(document).bind("projectIndex", function(e, pid){
$('#copyright_project').hide();
});

$(document).bind("projectLoadStart", function(e, pid){
$('#copyright_project').show();
});
</script>

Viewing all articles
Browse latest Browse all 867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>