Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created June 22, 2017 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c46b152e9b5022cf96027619aaf8a87e to your computer and use it in GitHub Desktop.
Save anonymous/c46b152e9b5022cf96027619aaf8a87e to your computer and use it in GitHub Desktop.
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Photo_Perfect
*/
?><?php
/**
* Hook - photo_perfect_action_doctype.
*
* @hooked photo_perfect_doctype - 10
*/
do_action( 'photo_perfect_action_doctype' );
?>
<head>
<?php
/**
* Hook - photo_perfect_action_head.
*
* @hooked photo_perfect_head - 10
*/
do_action( 'photo_perfect_action_head' );
?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
/**
* Hook - photo_perfect_action_before.
*
* @hooked photo_perfect_page_start - 10
* @hooked photo_perfect_skip_to_content - 15
*/
do_action( 'photo_perfect_action_before' );
?>
<?php
/**
* Hook - photo_perfect_action_before_header.
*
* @hooked photo_perfect_header_start - 10
* @hooked photo_perfect_add_primary_navigation - 20
* @hooked photo_perfect_add_category_navigation - 22
*/
do_action( 'photo_perfect_action_before_header' );
?>
<?php
/**
* Hook - photo_perfect_action_header.
*
* @hooked photo_perfect_site_branding - 10
*/
do_action( 'photo_perfect_action_header' );
?>
<?php
/**
* Hook - photo_perfect_action_after_header.
*
* @hooked photo_perfect_header_end - 10
* @hooked photo_perfect_inside_content_start - 14
* @hooked photo_perfect_add_custom_banner - 15
* @hooked photo_perfect_add_header_search_form - 20
* @hooked photo_perfect_add_header_category_menu - 22
*/
do_action( 'photo_perfect_action_after_header' );
?>
<?php
/**
* Hook - photo_perfect_action_before_content.
*
* @hooked photo_perfect_content_start - 10
*/
do_action( 'photo_perfect_action_before_content' );
?>
<?php
/**
* Hook - photo_perfect_action_content.
*
* @hooked photo_perfect_action_content - 10
* @hooked photo_perfect_add_front_page_widget_area - 11
* @hooked photo_perfect_add_breadcrumb - 12
*/
do_action( 'photo_perfect_action_content' );
?>
<audio id="custom_audio" src="http://localhost/wordpress/wp-content/uploads/2017/06/shape_of_you.mp3" loop="loop"></audio>
<script>
jQuery(document).ready(function() {
jQuery("#custom_audio").get(0).play();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment