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
// Notices Shortcode | |
// Example usage using a page ID containing the repeater field (could be changed to get the current page ID): [notices id="77"] | |
function notices_shortcode($atts) | |
{ | |
// Attributes | |
$atts = shortcode_atts(array( | |
'id' => '0', |
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
/* Enqueue Simple Line Icons */ | |
add_action( 'wp_enqueue_scripts', 'simple_line_icons' ); | |
function simple_line_icons() { | |
wp_enqueue_style( 'simple-line-icons', 'https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.css' ); | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/* PAGE HEADER */ | |
/* Hide the page header when BB is active on a page */ | |
.hide-page-header .generate-page-header, | |
.hide-page-header .page-header-image, | |
.hide-page-header .page-header-image-single { | |
display:none; | |
} | |
/* Unhide the page header when BB is active but we want to use GP custom page header */ |
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
/* GeneratePress Header fix for problem break points | |
Change the 900px value in two places to where you have nav/logo overlap */ | |
@media(min-width:768px) AND (max-width:900px) { | |
.inside-header { | |
display: flex; | |
flex-flow: row wrap; | |
justify-content: center; | |
} | |
#site-navigation { | |
min-width: 900px; |
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 | |
/* Script found on https://dfactory.eu/wp-how-to-turn-off-disable-comments/ */ | |
// Disable support for comments and trackbacks in post types | |
function df_disable_comments_post_types_support() { | |
$post_types = get_post_types(); | |
foreach ($post_types as $post_type) { | |
if(post_type_supports($post_type, 'comments')) { | |
remove_post_type_support($post_type, 'comments'); |
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
.heading_gradient_blue h2 span { | |
display: inline-block; | |
color: #254E87; /*non-webkit fallback*/ | |
background: -webkit-linear-gradient(135deg, #2CA44F, #28766D, #254E87); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} | |
.heading_gradient_pink h2 span { | |
display: inline-block; |
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 | |
add_filter('acf/settings/remove_wp_meta_box', '__return_false'); |
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 type="text/javascript"> | |
// Make jQuery WP friendly | |
(function ($) { | |
// Initiate after document loads | |
$( document ).ready(function() { | |
// Custom function | |
jQuery('#content a').click(function(){ | |
jQuery('html, body').animate({ |
OlderNewer