AI Verified

Name

Add space for Elementor Menu Anchor link

About

הקוד הנ"ל מוסיף מרווח של 30 פיקסלים כאשר גוללים לעוגן באמצעות תפריט Elementor

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

shaike

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

10/06/2024

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Add space for Elementor Menu Anchor link

 
                    
1add_action( 'wp_footer', function() {
2 // Check if Elementor is active
3 if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
4 return;
5 }
6 ?>
7 <script>
8 jQuery(document).ready(function($) {
9 // Wait for Elementor frontend to initialize
10 $(window).on('elementor/frontend/init', function() {
11 // Add a filter to adjust the scroll top distance for Elementor Menu Anchor
12 elementorFrontend.hooks.addFilter('frontend/handlers/menu_anchor/scroll_top_distance', function(scrollTop) {
13 return scrollTop - 90; // Adjust this value as needed
14 });
15 });
16 });
17 </script>
18 <?php
19});

0

Related Snippets

Please see some snippets below related to this snippet..

Elementor

Pro Verified

0

Change the Elementor Interface Button Colour

Added: 1 year ago

Last Updated: 1 year ago

This is how you change the New Elementor Interface Button Colour to be whatever you want!

Elementor

Unverified

0

Calculated-Dropdown

Added: 1 month ago

Last Updated: 1 month ago

Elementor

AI Verified

0

Elementor Container Global Gutter Settings

Added: 6 months ago

Last Updated: 6 months ago

Adds custom global gutters to elementor containers.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WordPress Admin

AI Verified

0

פונקציה שמוסיפה את הפריפיקס tel: לערך השדה ב ACF

Added: 2 months ago

Last Updated: 2 months ago

יצירת קישור לטלפון בתוסף ACF בוורדפרס ולהוסיף באופן אוטומטי את הפריפיקס "tel:" למספר הטלפון

Elementor

Unverified

0

show youtube channel on wordpress

Added: 4 months ago

Last Updated: 4 months ago

Elementor

Unverified