Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@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 }
}
@jamiemarsland
jamiemarsland / gist:2cc05e0c3146629c2fcc9947acb0cfca
Created May 14, 2024 04:53
Disable Negative Margins Globally on mobile
/* CSS to reset any negative margins on mobile devices */
@media (max-width: 768px) {
* {
margin-top: 0 !important;
margin-right: 0 !important;
margin-bottom: 0 !important;
margin-left: 0 !important;
}
}
html {
scroll-behavior: smooth;
}
html {
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
}
.scroller {
scroll-snap-align: start;
}
@jamiemarsland
jamiemarsland / gist:f27cb41835286e8045f3bfe4ac8947b7
Created October 13, 2022 18:25
Add Background image to Gutenberg Columns Block
.shorts {
background-image: url('https://woo.us2.instawp.xyz/wp-content/uploads/2020/09/product-w-jeans1.jpg');
background-color: #cccccc; /* Used if the image is unavailable */
height: 500px; /* You must set a specified height */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Do not repeat the image */
background-size: cover; /* Resize the background image to cover the entire container */
}
@jamiemarsland
jamiemarsland / gist:dfa1f1a1e19e92e4e450bcbf9b2af91d
Last active October 13, 2022 18:24
Reverse Gutenberg Columns on Mobile (use 'reverse-mobile' as class for Column)
@media (max-width: 768px) {
.reverse-mobile {
flex-direction: column-reverse;
}
}
.wp-block-navigation .wp-block-navigation-item__label:hover {
background-color: #CE4520;
border-radius: 25px;
color:white;
}
.wp-block-navigation .wp-block-navigation-item__label {
padding:10px;
}
.wp-block-image
{
border-radius: 76% 24% 67% 33% / 30% 30% 70% 70% ;
}
.wp-block-image:nth-child(2)
{
border-radius: 56% 44% 66% 34% / 52% 50% 50% 48%
}
.roundedpics {
border-radius: 25px;
}