Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Marie Comet MarieComet

🏠
Working from home
View GitHub Profile
@MarieComet
MarieComet / elementor-posts-widget-multiple-post-types.php
Last active Feb 1, 2021
Allow to select multiple post types as query source in Elementor Posts widget
View elementor-posts-widget-multiple-post-types.php
<?php
function elementor_posts_widget_multiple_post_types( $element, $args ) {
$element->update_control(
'posts_post_type', // control ID
[
'type' => Elementor\Controls_Manager::SELECT2,
'multiple' => true,
]
);
}
@MarieComet
MarieComet / divi-overlays-ie-edge.css
Created Oct 21, 2018
Fallback for Divi overlays option in EDGE/IE
View divi-overlays-ie-edge.css
/* IE / EDGE */
.overlayDiv {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
View test attributes color gutenberg
var addFilter = wp.hooks.addFilter;
var Fragment = wp.element.Fragment;
var RichText = wp.editor.RichText;
var InnerBlocks = wp.editor.InnerBlocks;
var el = wp.element.createElement;
// Hook function to add a caption to the core code block
function addColorColumns(settings) {
@MarieComet
MarieComet / divi-custom-link-options.php
Last active Jul 25, 2018
Add divi general settings theme options
View divi-custom-link-options.php
View divi-theme-options.php
if ( is_admin() ) {
add_filter( 'et_epanel_layout_data', 'custom_et_epanel_layout_data' );
}
/**
* Hooked into the et_epanel_layout_data filter
* Add additional social media options to the Divi Theme Options panel
*
* @param $options
*
* @return array