Skip to content

Instantly share code, notes, and snippets.

View askwpgirl's full-sized avatar

Angela Bowman askwpgirl

View GitHub Profile
@askwpgirl
askwpgirl / style.css
Created August 21, 2021 16:19
Align Elementor icons in Icon List Widget to the top rather than center of the text
/* In your Icon List, go to Advanced tab and add the following Custom CSS class:
my-icon-list
Then, in the Custom CSS area, add this CSS: */
.elementor-widget.my-icon-list .elementor-icon-list-item, .elementor-widget.my-icon-list .elementor-icon-list-item a{
-webkit-box-align: start;
-ms-flex-align: start;
align-items: start;
}
@askwpgirl
askwpgirl / style.css
Last active May 8, 2025 20:18
Elementor Custom CSS for Every Site
/* Spacing for lists in Elementor Text Editor */
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
padding: 0 0 20px 20px; /* Change this number to match the size of your body font */
margin: 0;
}
.elementor-widget-text-editor ul li,
.elementor-widget-text-editor ol li {
@askwpgirl
askwpgirl / functions.php
Last active December 14, 2021 18:31
Elementor Custom Query for Relationship
<?php
// Extends the Elementor Post Wiget query. Must set the widget query to get Property posts.
// This will get property posts that match the ID of the agent in the Property's ACF relational field.
// This only works on the agent's single post template
add_action( 'elementor/query/agent_related_properties', function( $query ) {
// Get the agent's ID from the main query.
global $post;
@askwpgirl
askwpgirl / style.css
Last active March 17, 2022 19:07
Global Styles for The Events Calendar to Override Elementor Site Settings for hyperlinks and buttons
/* Global TEC Styles to override Elementor global button and hyperlink styles */
.tribe-events button,
.tribe-events-page-template button {
background-color: transparent !important;
color: #141827 !important; /* Change color to match your theme */
border: none !important;
}
.tribe-events a,
@askwpgirl
askwpgirl / style.css
Last active July 12, 2023 18:47
Elementor - Custom Category Background Colors on Post Grid
/* See https://www.loom.com/share/eb7a5707d8b44038bde7886e3902ec11?sid=383b1a08-b755-4544-b372-446303907c48 for demo
See screeshot for HTML markup exmaple. This demo uses a custom loop.
https://www.evernote.com/shard/s20/sh/58ecb810-ad20-4b7c-84ac-17bb1dc94131/nliYiy0GKhDSkf-C-qOJUtYEymkTimGaVNc1PG_qaDajEPBuQPKBVSZGsA
*/
/* You can place this code under Appearance > Customize or in your child theme's style.css file */
/* category-blue, category-red, category-green are the names of the categories.
If your category name is "breakfast" then you would use category-breakfast instead.
@askwpgirl
askwpgirl / functions.php
Last active May 7, 2024 19:55
Add New WordPress Image Sizes
<?php
// See https://developer.wordpress.org/reference/functions/add_image_size/ for reference.
// Also https://bloggerpilot.com/en/disable-wordpress-image-sizes/
// Note: You must regenerate thumbnails for new image sizes to be generated. Use Rengenerate Thumbnails plugin.
// Copy the code below into a new snippet using Code Snippets plugin
// Add all new image sizes for the site here, examples:
@askwpgirl
askwpgirl / style.css
Created September 12, 2023 21:15
Avoid Black Screen from displaying when loading iframe Vimeo or YouTube Video in Elementor Container Background
/* Add this CSS to the Advanced tab > Custom CSS section of the Container containing the background video
This solution was proposed here: https://github.com/elementor/elementor/issues/1644#issuecomment-1125174378
*/
selector iframe {
opacity: 1;
animation-name: fadeInOpacity;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 1.75s;
@askwpgirl
askwpgirl / style.css
Last active October 31, 2023 19:46
Using Elementor with ThemeBlvd Themes
/* Add this CSS to your child theme or Appearance > Customize and choose Elementor Full Width for the page template */
.elementor-template-full-width .site-inner>.wrap {
max-width: none;
}
.elementor-template-full-width #main {
padding: 0;
}
@askwpgirl
askwpgirl / script.js
Last active September 21, 2023 03:08
Disable Links for Keyboard Navigation and Screen Readers on Elementor Post Widget Image
// Add this to Code Snippets plugin Javascript snippet
// This sets tabindex to -1 so that keyboard navigation skips over the image link
jQuery(document).ready(function () {
setTabindex('.elementor-post__thumbnail__link', '-1')
function setTabindex(selector, tabindex) {
var links = jQuery(selector);
@askwpgirl
askwpgirl / style.css
Created September 28, 2023 23:49
New Window Warnings Plugin CSS Styling for Elementor
/* If you are using https://wordpress.org/plugins/accessibility-new-window-warnings/,
the external link icons can look funny or output on items you don't want them to.
The following CSS can be adjusted as needed to format or hide these new window icons.
*/
/* Hide external link icon on social media icons in Elementor */
.elementor-social-icon .anww-external-link-icon {
text-indent: -2000px;
width: 0;