This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* # 404 NOT FOUND page | |
---------------------------------------------------------------------------------------------------- */ | |
.not-found .content, .not-found .content .entry { | |
background: transparent; | |
border-color: transparent; | |
} | |
.not-found .content { | |
margin: 7% auto 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include the PHP opening tag. | |
// Register not-found-widget | |
genesis_register_sidebar( array( | |
'id' => 'not-found-widget', | |
'name' => __( '404 Page Widget', 'studio_player' ), | |
'description' => __( 'This is the widget area for 404 NOT FOUND page. It uses to add sign up form.', 'studio_player' ), | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 404 NOT FOUND. | |
* | |
* @package StudioPlayer | |
* @link https://rainastudio.com/themes/studioplayer | |
* @author RainaStudio | |
* @copyright Copyright © 2018 RainaStudio | |
* @license GPL-2.0+ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include opening PHP tag. | |
// Enqueue 'sound.js' | |
add_action('wp_enqueue_scripts', 'sound_scripts'); | |
function sound_scripts() { | |
wp_register_script( 'app-sound-js', get_stylesheet_directory_uri() .'/js/rainastudio.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); | |
wp_enqueue_script( 'app-sound-js' ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var audioElement = document.createElement('audio'); | |
audioElement.setAttribute('src', 'https://rainastudio.com/wp-content/themes/rainastudio/sound/rainastudio.mp3'); | |
audioElement.autoPlay=false; | |
$('#soundPlay').click(function(e) { | |
audioElement.play(); | |
// Cancel the default action | |
e.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include opening tag. | |
// Enqueue Font Awesome. | |
add_action( 'wp_enqueue_scripts', 'your_site_font_awesome' ); | |
function your_site_font_awesome() { | |
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include opening tag | |
// add 'noindex' meta to archive | |
add_action( 'wp_head', 'add_noindex' ); | |
function add_noindex() { | |
if(is_archive()) { | |
echo '<meta name="robots" content="noindex,follow" />'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include the PHP opening tag | |
// Enqueue Scripts | |
add_action( 'wp_enqueue_scripts', 'pinterest_button_script' ); | |
function pinterest_button_script() { | |
wp_enqueue_script( 'pin-me-int', get_stylesheet_directory_uri() .'/js/pinme.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); | |
wp_enqueue_script( 'mystudio', get_stylesheet_directory_uri() .'/js/rainastudio.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); |