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
/* Use the selector below to hide the animated headline highlight */ | |
@media (prefers-reduced-motion: reduce) { | |
.elementor-headline--style-highlight svg { | |
display: none !important; | |
} | |
} | |
/* Use the selectors below to hide the rotating headline and use a different headline */ |
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
<script>document.addEventListener('DOMContentLoaded', function () { | |
const currentUrl = window.location.origin + window.location.pathname; | |
const links = document.querySelectorAll('a[href]'); | |
links.forEach(link => { | |
const linkUrl = new URL(link.href); | |
const normalizedLink = linkUrl.origin + linkUrl.pathname; | |
if (normalizedLink === currentUrl) { | |
link.setAttribute('aria-current', 'page'); |
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 | |
// copy the following code in to Code Snippets plugin and set to only run in Adminstration area. | |
// do not copy this text or anything above it. | |
/** | |
* Remove annoying Elementor license notice | |
*/ | |
add_action("admin_enqueue_scripts", function() { | |
?> |
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
<script> | |
(function($) { | |
function setupFlipBoxes($scope) { | |
$scope.find('.custom-flip-box').each(function () { | |
const $flipBox = $(this); | |
$flipBox.off('click').on('click', function () { | |
$flipBox.toggleClass('flipped'); | |
}); | |
}); | |
} |
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
/* This is a CSS media query for accessibility-aware | |
** browsers respects reduced motion setting in operating systems */ | |
@media (prefers-reduced-motion: reduce) { | |
.elementor-element.animated { | |
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
/* Add this CSS to your Custom CSS in Site Settings | |
** or custom.css */ | |
/* Underline hyperlinks in text widgets */ | |
.elementor-widget-text-editor a { | |
text-decoration: underline; | |
} | |
.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
//Add this to Header/Footer plugin in the HTML <head> | |
<script> | |
document.addEventListener('DOMContentLoaded', function () { | |
const seen = new WeakSet(); | |
const interval = setInterval(() => { | |
const swiperEls = document.querySelectorAll('.swiper.swiper-initialized'); | |
swiperEls.forEach((swiperEl, index) => { | |
if (seen.has(swiperEl)) return; |
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; | |
} |
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
/* 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; |
NewerOlder