Skip to content

Instantly share code, notes, and snippets.

View elbsegler63's full-sized avatar

elbsegler63

View GitHub Profile
@jamiemarsland
jamiemarsland / gist:583a33fbec759dd07896b8ba76a5451e
Created May 14, 2024 18:44
Remove negative margins on mobile
@media (max-width: 768px) {
[style*="margin-top:-"] { margin-top: 0 !important }
[style*="margin-right:-"] { margin-right: 0 !important }
[style*="margin-bottom:-"] { margin-bottom: 0 !important }
[style*="margin-left:-"] { margin-left: 0 !important }
}
@nicomollet
nicomollet / polylang-langswitcher-shortcode.php
Last active June 24, 2024 21:16
Polylang shortcode for lang switcher
<?php
/**
* Polylang Shortcode - https://wordpress.org/plugins/polylang/
* Add this code in your functions.php
* Put shortcode [polylang_langswitcher] to post/page for display flags
*
* @return string
*/
function custom_polylang_langswitcher() {
$output = '';