diff --git a/wp-content/themes/foundry0/functions.php b/wp-content/themes/foundry0/functions.php index c4086043f98b15f1132cd8333ea2b25725d7063f..e3a67ba45d8a5b33171fb2c1d852d9152d05bfbd 100644 --- a/wp-content/themes/foundry0/functions.php +++ b/wp-content/themes/foundry0/functions.php @@ -22,4 +22,6 @@ function register_my_menus() { ); } add_action( 'init', 'register_my_menus' ); + +$theme_path = get_template_directory_uri("/wp-content/themes/foundry0"); ?> \ No newline at end of file diff --git a/wp-content/themes/foundry0/header.php b/wp-content/themes/foundry0/header.php index dd9703492df3a62d9991bf7da2b2a467c4d1ee79..7822e0e89983f8ada29f6d734014ceef76d2f4e3 100644 --- a/wp-content/themes/foundry0/header.php +++ b/wp-content/themes/foundry0/header.php @@ -1,3 +1,4 @@ +<?php global $theme_path; ?> <!DOCTYPE html> <head> <title> @@ -31,9 +32,8 @@ <body> <div class="splash"> <video width="100%" height="100%" autoplay muted playsinline id="splash"> - <source src="./img/Neon-Splash.mp4" type="video/mp4"> + <source src="<?php echo $theme_path ?>/img/Neon-Splash.mp4" type="video/mp4"> </video> - </div> <div class="gris"> </div>