Skip to content

Instantly share code, notes, and snippets.

@raabmar
raabmar / gist:c9bd9dc4814fbd5664634d6ee9991620
Created July 12, 2022 09:35
Elementor CSS MEdia Queries
/* This is an Example for a gallery-item in Elementor Custom CSS with Media Queries for different Elements */
/* Small devices (mobile/tablets, 767px and below) */
@media only screen and (max-width: 766px) {
selector .gallery-item img {
object-fit: cover;
height: 18.5em
}
}
@raabmar
raabmar / wp-custom-iris-color-picker.php
Created June 26, 2022 06:05
Custom Default Colors for WP Colorpicker (WordPress Backend not just Gutenberg)
<?php
/* .... some other theme functions ... */
/* Custom Default Colors for WP Colorpicker */
function theme_name_color_palettes() {
if(wp_script_is('wp-color-picker', 'enqueued') ){
?>
<script type="text/javascript">
jQuery(document).ready(function(){