This file contains 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
<script>var v = document.getElementById("movie"); | |
v.onclick = function() { | |
v.paused ? v.play() : v.pause() | |
};</script> |
This file contains 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
<script>var video= jQuery("#hero-movie")[0]; | |
var videoJ= jQuery("#hero-movie"); | |
videoJ.on("ended",function(){ | |
video.load(); | |
});</script> |
This file contains 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 | |
/* @link https://anythinggraphic.net/change-wordpress-admin-login-logo-image-url/ | |
/* Change login logo and link | |
----------------------------------------------------------------------------------------*/ | |
add_filter('login_headerurl','ag_login_link'); | |
function ag_login_link() { | |
return home_url(); | |
} |
This file contains 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 | |
/* @link https://anythinggraphic.net/change-entry-title-post-links-archives-genesis/ | |
/* Change the link on the entry-title for each post to a custom one on Archives page | |
----------------------------------------------------------------------------------------*/ | |
add_filter( 'genesis_post_title_output', 'ag_custom_post_title_link' ); | |
function ag_custom_post_title_link( $title ) { | |
if( is_archive() ) { | |
$post_title = get_the_title( get_the_ID() ); | |
$title = '<h2 class="entry-title" itemprop="headline"><a href="' . get_field('link') . '" target="new">' . $post_title . '</a></h2>'; |
This file contains 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 | |
/* @link https://anythinggraphic.net/disable-emojis-in-wordpress-without-a-plugin | |
/* Remove emoji scripts and dns prefetch | |
----------------------------------------------------------------------------------------*/ | |
add_action( 'init', 'ag_disable_wp_emojicons' ); | |
function ag_disable_wp_emojicons() { | |
// all actions related to emojis | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); |
This file contains 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 | |
/* @link https://anythinggraphic.net/allow-shortcodes-in-author-box-for-genesis/ | |
/* Allow shortcodes in the Author Box for users | |
----------------------------------------------------------------------------------------*/ | |
add_filter( 'genesis_author_box', 'do_shortcode', 20 ); |
This file contains 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 | |
/* Force full width conditionally | |
----------------------------------------------------------------------------------------*/ | |
add_action( 'genesis_meta', 'bw_force_layout' ); | |
function bw_force_layout() { | |
if ( is_front_page() ) { | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
} | |
} |
This file contains 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 | |
/* @link https://anythinggraphic.net/paste-as-text-by-default-in-wordpress | |
/* Use Paste As Text by default in the editor | |
----------------------------------------------------------------------------------------*/ | |
add_filter('tiny_mce_before_init', 'ag_tinymce_paste_as_text'); | |
function ag_tinymce_paste_as_text( $init ) { | |
$init['paste_as_text'] = true; | |
return $init; | |
} |
This file contains 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
# https://anythinggraphic.net/disable-emojis-in-wordpress-without-a-plugin | |
# BEGIN GZIP COMPRESSION | |
<IfModule mod_deflate.c> | |
# Compress HTML, CSS, JavaScript, Text, XML and fonts | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-opentype | |
AddOutputFilterByType DEFLATE application/x-font-otf |