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
box-shadow: 0 1px 0 0 palegoldenrod; /* Border bottom */ | |
box-shadow: 0 -1px 0 0 palegoldenrod; /* Border top */ | |
box-shadow: -1px 0 0 0 palegoldenrod; /* Border left */ | |
box-shadow: 1px 0 0 0 palegoldenrod; /* Border right */ | |
box-shadow: 0 0 0 1px palegoldenrod; /* All borders */ |
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
// Remove styling from react-select | |
const styleProxy = new Proxy({}, { | |
get: (target, propKey) => () => {} | |
}); | |
// Keep menu open | |
menuIsOpen='true' |
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
<textarea id="js-message" rows="4" maxlength="300"></textarea> | |
<div id="js-counter" class="message__counter">0 / 300</div> | |
<script> | |
// Character count | |
var message = document.getElementById('js-message'); | |
var counter = document.getElementById('js-counter'); | |
message.addEventListener('input', function (e) { | |
var target = e.target; |
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
// Custom walker. Removes default classes but keeps any custom classes | |
class custom_walker extends Walker_Nav_Menu { | |
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { | |
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; | |
$class_names = $value = ''; | |
$class_names = join( ' ', apply_filters( | |
'nav_menu_css_class', (array)get_post_meta( $item->ID, '_menu_item_classes', true ) ) |
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_action('frm_after_create_entry', 'sendToPardot', 30, 2); | |
function sendToPardot($entry_id, $form_id){ | |
if($form_id == 5){ // Form ID | |
/* You can create as many variables as you need, the last number is the field ID number | |
that you get from the Build or Settings tab of your form */ | |
$pardotEmail = ($_POST['item_meta'][10]); | |
$pardotFirst = ($_POST['item_meta'][11]); | |
$pardotPhone = ($_POST['item_meta'][12]); | |
/* In Pardot you specify whatever External Field Name you want. |
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
// Functions | |
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_sub_page(array( | |
'page_title' => 'PAGE_TITLE', | |
'menu_title' => 'MENU_TITLE', | |
'menu_slug' => 'MENU_SLUG', | |
'capability' => 'edit_posts', | |
'parent_slug' => 'edit.php?post_type=POST_TYPE', | |
)); |
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
#Child > | |
nav>ul>li | |
#Sibling + | |
h1+h2+p | |
#Climb-up ^ | |
div+div>p>span+em^bq | |
div+div>p>span+em^^bq |
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
version: '3.3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
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_filter('frm_validate_field_entry', 'my_custom_validation', 10, 3); | |
function my_custom_validation($errors, $posted_field, $posted_value){ | |
$fieldArray = array(001,002); | |
$blockArray = array("@mail.co.uk","@hotmail.","@googlemail.","@gmail.","@yandex.","@live.","@yahoo.","@mail.","@chemist.","@coolsite.","@comic.","@fastmail.","@outlook.","@me.","@aol.","@lycos.","@gmx.","@home.","@123-reg."); | |
if(in_array($posted_field->id, $fieldArray)){ | |
foreach ($blockArray as $blockedValue) { | |
if (stripos($posted_value, $blockedValue)) | |
{ | |
$errors['field'. $posted_field->id] = 'Please use a business email address. We\'re unable to process orders for @'. explode('@', $posted_value, 2)[1] .' email addresses.'; | |
} |
NewerOlder