calin-beard
11/13/2017 - 4:05 PM

Display first section only if an URL parameter is present

Display first section only if an URL parameter is present

<script> 
ijQuery(document).ready(function(){
    
  console.log(document.location.search.length);
  
  if (document.location.search.length) {

  }
      
  else {
    $('.page-block').first().addClass('displaynone');
  }
	
});
</script>
<style>
  .displaynone {
    display: none !important;
  }
</style>