View woocommerce-product-gallery-thumbnails-dimensions.php
View astra-extra-google-font-variants.php
<?php // don't copy this line in your code
/**
* Load extra font weights in Astra Google fonts.
* This example loads extra variannts for the Open Sans font.
*
* @param Array $fonts Fonts selected in customizer.
* @return Array Fonts array updated with more font variants to be loaded.
*/
function your_prefix_astra_more_font_weights( $fonts ) {
View astra-post-title-instead-of-next-previous.php
<?php // don't copy this line in your code.
function your_prefix_next_previous_post_titles() {
return array(
'next_text' => get_the_title( get_next_post() ) . ' <span class="ast-right-arrow">&rarr;</span>',
'prev_text' => '<span class="ast-left-arrow">&larr;</span> ' . get_the_title( get_previous_post() ),
);
}
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
View disable-post-navigation.php
<?php // don't copy this line in your code.
/**
* Disable Next/Previous post links on specific post ttype.
* Change `your-post-type` to your post-type slug.
*
* @param Boolean $status true - If the navigation is displayed. False - If navigation is disabled.
* @return Boolean $status true - If the navigation is displayed. False - If navigation is disabled.
*/
function your_prefix_next_prev_links( $status ) {
View astra-disable-featured-image-on-all-pages.php
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 astra-align-footer-always-bottom-of-page.php