adding new links for the bottom portfolio section
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 30 Apr 2018 12:14:08 +0000 (08:14 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 30 Apr 2018 12:14:08 +0000 (08:14 -0400)
header.php
js/custom.js

index 38f5383..40812bc 100644 (file)
 <![endif]-->
 <link href='https://fonts.googleapis.com/css?family=Montserrat:400,400italic,700' rel='stylesheet' type='text/css'>
 <?php wp_head(); ?>
+<script>
+    window['pages'] = {
+        'amenities': '<?php echo get_permalink(29); ?>',
+        'area'     : '<?php echo get_permalink(31); ?>'
+    }
+</script>
 </head>
 
 <body <?php body_class(); ?>>
index 742714c..13a3396 100644 (file)
@@ -150,7 +150,11 @@ jQuery(document).ready(function($){
         }, 1000 );
            
     }
-    $('.portfolio-list').on("click", function(e){
+    $('.portfolio-listing').first().children('.portfolio-list').on("click", function(e){
         e.preventDefault();
     });
+    let portfolio_bottom = $('.portfolio-listing').last();
+    portfolio_bottom.children('a').first().attr('href', 'https://clients.innroad.com/kingsail/property.aspx').attr('target', '_blank');
+    portfolio_bottom.children('a:eq(1)').attr('href', window.pages.amenities);
+    portfolio_bottom.children('a').last().attr('href', window.pages.area);
 });
\ No newline at end of file