View change-post-type-label.php
<?php // don't copy this line in your code | |
function your_prefix_change_post_type_slug( $args, $post_type ) { | |
if ( 'sfwd-topic' == $post_type ) { | |
$args['labels']['name'] = 'LD Topics'; | |
} | |
return $args; | |
} |
View woocommerce-product-gallery-thumbnails-dimensions.php
<?php | |
/** | |
* Change WooCommerce product gallery image thumbnail dimensions. | |
* | |
* @return Array Array( height, width ) | |
*/ | |
function your_prefix_gallery_image_sizes() { | |
return array( | |
600, |
View astra-disable-featured-image-on-all-pages.php
<?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', |
View astra-disable-title-on-all-pages.php
<?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', |
View dynamic-astra-customizer-options-update.php
<?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. | |
*/ |
View smooth-scroll-to-anchor.js
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); |