This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -- 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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'] ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add the following to Code Snippets after creating ACF Field for the short description | |
// apply the ACF field group to Products posts | |
/*-------------------------------------------------------*/ | |
/* Add short description to product archives | |
/*-------------------------------------------------------*/ | |
function my_excerpt_in_product_archives() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TEC tries to load its auto generated Elementor "Starter" template CSS on every event. | |
// This CSS file will throw a 404 since it will never be used on any event under any circumstance. | |
// To prevent this, use the following function in your child theme's functions file or Code Snippet plugin. | |
// Change the template ID to the ID of the template under Templates > Saved Templates > The Events Calendar – Starter | |
// You cannot delete this template as TEC will auto generate it again. | |
// This CSS is enqueued in TEC free plugin - src > Events > Integrations > Plugins > Elementor > Asset_Manager.php | |
function dequeue_elementor_event_template_styles_on_single_event() { | |
// Check if this is a single event page | |
if ( is_singular('tribe_events') ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Text content disappears on post widgets that have a left-aligned image, | |
unless the image ratio is adjusted to be very tiny on mobile. | |
To stack the image instead, use this CSS in the Customizer. */ | |
@media(max-width: 767px) { | |
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img { | |
left: auto !important; | |
position: relative !important; | |
top: auto !important; | |
transform: none !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Events Calendar can drive up huge amoounts of CPU by generating tons of worthless URLs that bots try to call. | |
Following is a robots.txt file that can combat these excessive server hits from Google and Facebook bots. | |
Note, this also blocks The Events Calendar Categories which you may or may not want to do. | |
User-agent: * | |
Crawl-delay: 3 | |
Disallow: /wp-login.php | |
Disallow: /trackback | |
Disallow: /feed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Elementor's Site Settings for Lightbox icon colors | |
has been broken for a long time. | |
You can use the code below in your custom CSS to control | |
the icon colors */ | |
.elementor-slideshow__header, | |
.elementor-lightbox .dialog-lightbox-close-button, | |
.elementor-lightbox .elementor-swiper-button { | |
color: #000 !important; | |
} |