This file contains 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
jQuery(document).on('ready', function(event) { | |
// Scroll smoothly to anchor | |
jQuery('a[href^="#"]').on('click', function(event) { | |
var target = jQuery(this.getAttribute('href')); | |
if( target.length ) { | |
event.preventDefault(); | |
jQuery('html, body').stop().animate({ | |
scrollTop: target.offset().top | |
}, 1000); |
This file contains 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 // don't copy this line in your file. | |
// Condition to check if this page requires `Apply Now` button. | |
if ( 1481 === get_the_id() ) { | |
your_prefix_setup_header_button_apply_now(); | |
} | |
/** | |
* Setup filters for changing the values in the Astra Settings. | |
*/ |
This file contains 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 // don't copy this line in your code | |
/** | |
* Disable title on all post types. | |
*/ | |
function your_prefix_post_title() { | |
$post_types = array( | |
'post', | |
'page', |
This file contains 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 // don't copy this line in your code | |
/** | |
* Disable title on all post types. | |
* | |
* Change 'page' post type to your custom post type if you want to use this for different custom post types. | |
*/ | |
function your_prefix__featured_image() { | |
$post_types = array( | |
'post', |