I have a hook element with some javascript, that I have set to load in wp_footer on the page that is set as front page and another page, in “Display rules”.
But on the page, that is set as front page, the code is not loaded.
Here is the code:
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.ab-block-cta').bind('click', function() {
window.location = $(this).find('a').attr('href');
});
});
</script>
You see it on the link provided in “Your website URL”/ydelser
But not on the front page.
How can this be?
GeneratePress 2.2.2
GP Premium 1.7.8