Skip to content

Instantly share code, notes, and snippets.

@renemorozowich
renemorozowich / style.css
Created October 11, 2019 13:19
Style a bottom menu (after header) added to an Astra child theme
.bottom-header-bar {
background-color: #ff0000;
text-align: right;
padding: 10px 0;
}
#menu-bottom {
margin: 0;
}
@renemorozowich
renemorozowich / functions.php
Last active October 11, 2019 13:25
Add a top menu AND a bottom menu (after header) to an Astra child theme
/**
* Add additional menus
*/
function register_additional_menus() {
register_nav_menu( 'top-menu', __( 'Top Menu' ) );
register_nav_menu( 'bottom-menu', __( 'Bottom Menu' ) );
}
add_action( 'init', 'register_additional_menus' );
/**
@renemorozowich
renemorozowich / gf-validate.js
Created April 12, 2025 17:47
Validate Gravity Forms fields
<script>
document.addEventListener("DOMContentLoaded", checkPage);
function checkPage() {
document.getElementById("gform_submit_button_2").style.display = 'none';
}
// first name
document.getElementById("input_2_1_3").addEventListener("change", checkFields);