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
# #!/bin/bash | |
# # | |
# # provision.sh | |
# # | |
# # This file is specified in Vagrantfile and is loaded by Vagrant as the primary | |
# # provisioning script whenever the commands `vagrant up`, `vagrant provision`, | |
# # or `vagrant reload` are used. It provides all of the default packages and | |
# # configurations included with Varying Vagrant Vagrants. | |
# # By storing the date now, we can calculate the duration of provisioning at the |
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
/* | |
* Set up your Git configuration | |
*/ | |
git config --global user.email "you@yourdomain.com" | |
git config --global user.name "Your Name" | |
git config --global core.editor "nano" |
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
/* Testimonials | |
--------------------------------------------- */ | |
/* Google Review Plugin Swap #32407b and #fff for your colors */ | |
@media(min-width:768px) { | |
/* Testimonials Equal Height*/ | |
.wprevpro_t1_outer_div { | |
display: flex; |
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 //<~ don't add me in | |
add_shortcode( 'tl_related_lights', 'tl_related_lights_relationship' ); // Add your shortcode here | |
// Add Relationship field between same CPT | |
function tl_related_lights_relationship() { | |
ob_start(); | |
$posts = get_field('relationship_field_name'); // Add your ACF field in here |
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 ~> don't add me / this function calls the script.js | |
add_filter( 'wp_grid_builder/frontend/register_scripts', 'prefix_register_script' ); | |
//gridbuilder external js script | |
function prefix_register_script( $scripts ) { | |
$scripts[] = [ | |
'handle' => 'global', | |
'source' => '/wp-content/themes/mytheme/js/script.js', |
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
# | |
# Author: Mike Rushton | |
# | |
# IMPORTANT | |
# | |
# Please set jail.local's permission to 640 because it contains your CF API key. | |
# | |
# This action depends on curl (and optionally jq). | |
# Referenced from http://www.normyee.net/blog/2012/02/02/adding-cloudflare-support-to-fail2ban by NORM YEE | |
# |
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
add_action( 'wp_print_scripts', 'themeprefix_remove_password_strength', 100 ); | |
// Remove password strength script | |
function themeprefix_remove_password_strength() { | |
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) { | |
wp_dequeue_script( 'wc-password-strength-meter' ); | |
} | |
} |
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 | |
/* | |
Plugin Name: Checkbox Meta | |
Plugin URI: http://wpbeaches.com/ | |
Description: Checkbox Test | |
Author: Neil Gee | |
Version: 1.0.0 | |
Author URI: http://wpbeaches.com | |
License: GPL-2.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
<?php | |
//Adding CSS inline style to an existing CSS stylesheet | |
function wpb_add_inline_css() { | |
//All the user input CSS settings as set in the plugin settings | |
$slicknav_custom_css = " | |
@media screen and (max-width: {$ng_slicknav_width}px) { | |
{$ng_slicknav_menu} { | |
display: none; |
NewerOlder