- add this javascript
document.documentElement.style.setProperty('--nav-height', document.getElementById("navbar").offsetHeight);
- use property iny css
:root {
--nav-height: 70px; /*You HAVE To Give A Default Fallback Value*/
}
<?php | |
// Allow the Gravity form to stay on the page when confirmation displays. | |
add_filter( 'gform_pre_submission_filter', 'dw_show_confirmation_and_form' ); | |
function dw_show_confirmation_and_form( $form ) { | |
// Inserts a shortcode for the form without title or description | |
$shortcode = '[gravityform id="' . $form['id'] . '" title="false" description="false"]'; | |
// Ensures that new lines are not added to HTML Markup | |
ob_start(); |
/** | |
* Set default "From Email" for Gravity Forms notifications using WordPress domain. | |
*/ | |
function override_gravityforms_from_email( $email, $notification ) { | |
// Get the WordPress site URL and extract the domain. | |
$site_url = get_site_url(); | |
$parsed_url = parse_url( $site_url ); | |
$domain = isset( $parsed_url['host'] ) ? $parsed_url['host'] : ''; | |
if ( isset( $email['from'] ) && $email['from'] === '{admin_email}' ) { | |
$email['from'] = 'no-reply@' . $domain; |
const mix = require('laravel-mix'); | |
const ImageminPlugin = require('imagemin-webpack-plugin').default; | |
require('laravel-mix-tailwind'); | |
require('laravel-mix-purgecss'); | |
const assetsPath = 'resources/assets'; | |
const distPath = './dist'; | |
const publicPath = '/wp-content/themes/THEME_NAME'; |
/*! Flickity v2.1.2 | |
https://flickity.metafizzy.co | |
---------------------------------------------- */ | |
.flickity-enabled { | |
position: relative; | |
} | |
.flickity-enabled:focus { | |
outline: none; |
<div class="smooth-scroll"> | |
<section class="red" data-scroll-section> | |
<div class="section-inner">Text</div> | |
</section> | |
<section class="blue" data-scroll-section> | |
<div class="section-inner">Text</div> | |
</section> | |
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Limit Submissions Per Time Period (by IP, User, Role, Form URL, or Field Value) | |
* | |
* Limit the number of times a form can be submitted per a specific time period. You modify this limit to apply to | |
* the visitor's IP address, the user's ID, the user's role, a specific form URL, or the value of a specific field. | |
* These "limiters" can be combined to create more complex limitations. | |
* | |
* @version 3.0 | |
* @author David Smith <david@gravitywiz.com> |