adding javascript to link the marinas locations on the front page to the marinas...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jun 2018 19:14:51 +0000 (15:14 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jun 2018 19:14:51 +0000 (15:14 -0400)
header.php
js/custom.js

index 35dcca0..f04ccf0 100644 (file)
@@ -23,8 +23,7 @@
 <?php wp_head(); ?>
 <script>
     window['pages'] = {
-        'amenities': '<?php echo get_permalink(29); ?>',
-        'area'     : '<?php echo get_permalink(31); ?>'
+        'marinas': '<?php echo get_permalink(44); ?>',
     }
 </script>
 </head>
index a6e7f53..b4a4107 100644 (file)
@@ -151,6 +151,8 @@ jQuery(document).ready(function($){
            
     }
     $('.portfolio-listing').first().children('.portfolio-list').on("click", function(e){
+        console.log(window['pages'].marinas)
+        window.location = window['pages'].marinas;
         e.preventDefault();
     });