Browse Source

meta-desc

windhamdavid 5 years ago
parent
commit
20bc3c94ed
3 changed files with 5 additions and 2 deletions
  1. 5 0
      functions.php
  2. 0 1
      header-home.php
  3. 0 1
      header.php

+ 5 - 0
functions.php

@@ -70,6 +70,11 @@ function dw_scripts() {
 		wp_enqueue_script( 'last-fm', get_template_directory_uri() . '/js/fm.js', 'jquery', '', true );
 	}
 	
+	elseif ( is_page('contact') ) {
+		wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/script-o.js', '', '', true );
+		wp_enqueue_script( 'form', get_template_directory_uri() . '/js/form.js', '', '', true );
+	}
+	
 	elseif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
 		wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/script-o.js', '', '', true );
 		wp_enqueue_script( 'init-o', get_template_directory_uri() . '/js/init-o.js', '', '', true );

+ 0 - 1
header-home.php

@@ -59,6 +59,5 @@
 		<li><a href="<?php echo home_url( '/' ); ?>desk" class="list-group-item"><span class="fa fa-pencil-square-o fa-fw"></span> Desk</a></li>
 		<li><a href="<?php echo home_url( '/' ); ?>studio" class="list-group-item"><span class="fa fa-flask fa-fw"></span> Studio</a></li>
 		<li><a href="<?php echo home_url( '/' ); ?>contact" class="list-group-item"><span class="fa fa-envelope-o fa-fw"></span> Contact</a></li>
-		<li><a href="<?php echo home_url( '/' ); ?>sitemap" class="list-group-item"><span class="fa fa-sitemap fa-fw"></span> Sitemap</a></li>
 	</ul>
 </nav>

+ 0 - 1
header.php

@@ -30,6 +30,5 @@
 		<li><a href="<?php echo home_url( '/' ); ?>desk" class="list-group-item"><span class="fa fa-pencil-square-o fa-fw"></span> Desk</a></li>
 		<li><a href="<?php echo home_url( '/' ); ?>studio" class="list-group-item"><span class="fa fa-flask fa-fw"></span> Studio</a></li>
 		<li><a href="<?php echo home_url( '/' ); ?>contact" class="list-group-item"><span class="fa fa-envelope-o fa-fw"></span> Contact</a></li>
-		<li><a href="<?php echo home_url( '/' ); ?>sitemap" class="list-group-item"><span class="fa fa-sitemap fa-fw"></span> Sitemap</a></li>
 	</ul>		
 </nav>