<?php //* Do NOT include the opening php tag //* Add JS to allow elements to be faux anchors add_action( 'wp_footer', 'bg_script_clickable' ); function bg_script_clickable() { echo '<script type="text/javascript">jQuery(document).ready(function($){$(".content .entry").click(function(){window.open($("a",this).attr("href"), "_blank");});});</script>'; }