Skip to content

Instantly share code, notes, and snippets.

View webdevs-pro's full-sized avatar

WebDevs.pro webdevs-pro

View GitHub Profile
@webdevs-pro
webdevs-pro / YouTubeURLFormats.txt
Created May 15, 2022 19:34 — forked from rodrigoborgesdeoliveira/ActiveYouTubeURLFormats.txt
Example of the various YouTube url formats
http://www.youtube.com/watch?v=-wtIMTCHWuI
http://www.youtube.com/v/-wtIMTCHWuI?version=3&autohide=1
http://youtu.be/-wtIMTCHWuI
http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch?v%3D-wtIMTCHWuI&format=json
http://www.youtube.com/attribution_link?a=JdfC0C9V6ZI&u=%2Fwatch%3Fv%3DEhxJLojIE_o%26feature%3Dshare
@webdevs-pro
webdevs-pro / gist:749980e978a410f3e9c01e39dc33bcc4
Created February 12, 2021 05:45 — forked from rugor/gist:1decc15655891825d15a7024a06d898b
PHP: WordPress echo SVG file contents for inline SVG
<?php echo file_get_contents( get_stylesheet_directory_uri() . '/img/awesome.svg' ); ?>
@webdevs-pro
webdevs-pro / custom-css.php
Created August 30, 2020 11:30 — forked from iqbalrony/custom-css.php
How to add custom css control with elementor free version.
<?php
use Elementor\Controls_Manager;
use Elementor\Element_Base;
use Elementor\Core\Files\CSS\Post;
use Elementor\Core\DynamicTags\Dynamic_CSS;
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit;
@webdevs-pro
webdevs-pro / gist:df6911c5dcb3160ec28a8732bfefb9b4
Created December 30, 2019 18:15 — forked from oooh-boi/gist:3e3fbb773ebbd647b92de8880aa4c5ef
CSS and jQuery code used in "Custom Slider in Elementor built with Elementor" video tutorial
/* ---------- CSS
- should be "attached" to the master Section */
/* make 100% wide columns possible for Desktop devices in Elementor */
.custom-swiper .elementor-container .elementor-row {
/*flex-wrap: wrap;*/
}
/* make all the colums-slides 100% wide and full screen tall */
.custom-swiper > .elementor-container > .elementor-row > .elementor-element.elementor-column {
width: 100%;
<?php
public function enqueue_script(){
wp_register_script( 'general-script', EC_EXTENTIONS_URL . 'assets/js/script.js', [ 'jquery' ], EC_ELEMENTOR_VERSION, true );
}
public function register_frontend_styles(){
wp_register_style('general-style', EC_EXTENTIONS_URL . 'assets/css/general.css', array(), EC_ELEMENTOR_VERSION);
}
public function enqueue_frontend_styles(){
@webdevs-pro
webdevs-pro / Debug.php
Created July 28, 2019 20:57 — forked from sunel/Debug.php
PHP Pretty var_dump
<?php
class Debug {
/**
* A collapse icon, using in the dump_var function to allow collapsing
* an array or object
*
* @var string
*/