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 NEW ADMIN USER TO WORDPRESS | |
// ---------------------------------- | |
// Put this file in your Wordpress root directory and run it from your browser. | |
// Delete it when you're done. | |
require_once('wp-blog-header.php'); | |
require_once('wp-includes/registration.php'); | |
// ---------------------------------------------------- |
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 | |
class Elementor_Custom_Widget extends \Elementor\Widget_Base { | |
/*================================= | |
Single condition:- | |
====================================*/ | |
/*================================= | |
Credit: Eqbal Rony | |
original gist: https://github.com/iqbalrony/elementor-conditions/blob/master/conditions.php | |
====================================*/ |
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 | |
//============================================================================================= | |
// FUNCTION -> MINIFY HTML OUTPUT | |
//============================================================================================= | |
class WP_HTML_Compression { | |
protected $compress_css = true; | |
protected $compress_js = true; | |
protected $info_comment = 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
/* | |
* Reference: https://responsivedesign.is/develop/browser-feature-support/media-queries-for-common-device-breakpoints/ | |
* https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { | |
/* Styles */ | |
} |
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
extend the Group Control Base in my plugin to create an external background image option field to go with the standard classic background options. | |
class Group_Control_Background_trchristensen extends Group_Control_Background { | |
public function init_fields() { | |
$fields = parent::init_fields(); | |
//here you add your field | |
$fields['ext_image'] = [ | |
'label' => _x( 'External Image', 'Background Control', 'elementor' ), | |
'type' => Controls_Manager::TEXT, | |
'title' => _x( 'Background Image', 'Background Control', 'elementor' ), |
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
.flood .service:nth-of-type(1) { | |
#redSwatch { | |
@include animation-name(red-swatch-go); | |
@extend .animation-settings; | |
@include transform-origin(32%, 78%); | |
} | |
&:hover #redSwatch { | |
@include animation-name(red-swatch-off); |
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 $efeed = new WP_Query( array( | |
'post_type' => 'tribe_events', | |
'showposts' => 2, | |
'eventDisplay' => 'upcoming', | |
'start_date' => $current_date, | |
'end_date' => $current_date, | |
'orderby' => 'start_date', | |
'order' => 'ASC', | |
'tax_query' => array( | |
array( |
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
'eicon-editor-link' => 'eicon-editor-link', | |
'eicon-editor-unlink' => 'eicon-editor-unlink', | |
'eicon-editor-external-link' => 'eicon-editor-external-link', | |
'eicon-editor-close' => 'eicon-editor-close', | |
'eicon-editor-list-ol' => 'eicon-editor-list-ol', | |
'eicon-editor-list-ul' => 'eicon-editor-list-ul', | |
'eicon-editor-bold' => 'eicon-editor-bold', | |
'eicon-editor-italic' => 'eicon-editor-italic', | |
'eicon-editor-underline' => 'eicon-editor-underline', | |
'eicon-editor-paragraph' => 'eicon-editor-paragraph', |