Skip to content

Instantly share code, notes, and snippets.

View askwpgirl's full-sized avatar

Angela Bowman askwpgirl

View GitHub Profile
@askwpgirl
askwpgirl / functions.php
Created May 3, 2024 21:42
Add category body class to The Events Calendar category archives
<?php
add_filter( 'body_class', 'tec_archive_body_class' );
function tec_archive_body_class( array $classes ) {
if (is_tax( 'tribe_events_cat' ) ) {
$classes[] = 'rg-events-category';
}
@askwpgirl
askwpgirl / functions.php
Created April 10, 2024 00:49
Display The Events Calendar Past Events in Reverse order
/**
* Changes Past Event Reverse Chronological Order
*
* @param array $template_vars An array of variables used to display the current view.
*
* @return array Same as above.
*/
function tribe_past_reverse_chronological_v2( $template_vars ) {
if ( ! empty( $template_vars['is_past'] ) ) {
@askwpgirl
askwpgirl / advanced tab custom css
Created April 9, 2024 23:45
Elementor change color of sticky menu on scroll
/* -- Changing the menu background on scroll effect -- */
.elementor-sticky--effects {
background: #3E3EF5!important; /* change the background color here*/
}
.elementor-sticky--effects .sticky-menu ul li a /* change the menu text color here*/ {
color: #fff!important;
}
@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 March 5, 2024 05:56
Elementor Custom CSS for Every Site
/* Spacing for lists */
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
padding: 0 0 0 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 / style.css
Created March 5, 2024 05:56
Custom Elementor Button Style
/* Custom button style */
.button-white-outline .elementor-button {
border: 1px solid #fff;
color: #fff !important;
background: transparent !important;
}
.button-white-outline .elementor-button:hover {
border: 1px solid #AE5900;
@askwpgirl
askwpgirl / functions.php
Last active February 6, 2024 04:52
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
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 / style.css
Last active October 1, 2023 19:46
Elementor - underline hyperlinks in body text
/* Ideally, you will want to have hyperlinks underlined in body copy but remove the underline
on hover to indicate something has changed.
*/
.site-content .elementor-widget-text-editor a,
.elementor-widget-theme-post-content a {
border-bottom: 1px solid #333333; /* change color as desired */
}
.site-content .elementor-widget-text-editor a:hover,
@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;