I hereby claim:
- I am nikschavan on github.
- I am nikhilchavan (https://keybase.io/nikhilchavan) on keybase.
- I have a public key ASDwKn9STnshrMPZ2oVg74bs4v8Bcw8o_gDi6cbcb1IJHQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php // don't add this line to your file. | |
add_filter( 'astra_schema_body', '__return_empty_string' ); | |
add_filter( | |
'astra_attr_post-meta-author', | |
function( $attr ) { | |
unset( $attr['itemprop'] ); | |
unset( $attr['itemscope'] ); | |
unset( $attr['itemtype'] ); |
<?php | |
/** | |
* Function to change the Next Post/ Previous post text. | |
* | |
* @param array $args Arguments for next post / previous post links. | |
* @return array | |
*/ | |
function astra_change_next_prev_text( $args ) { | |
$next_post = get_next_post(); |
<?php | |
/** | |
* Enqueue styles | |
*/ | |
function astra_bb_custom_layout_styles_in_head() { | |
if ( ! is_callable( 'FLBuilder::enqueue_layout_styles_scripts_by_id' ) ) { | |
return; | |
} |
<?php // don't copy this line in your code | |
/** | |
* Display only last modified date in the post metadata. | |
* | |
* @param String $output Markup for the last modified date. | |
* @return void | |
*/ | |
function your_prefix_post_date( $output ) { | |
$output = ''; |
<?php // don't copy this line in your code. | |
add_action('init', 'your_prefix_setup_actions' ); | |
function your_prefix_setup_actions() { | |
remove_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 ); | |
add_action( 'astra_masthead_content', 'your_prefix_header_markup', 8 ); | |
} | |
function your_prefix_header_markup() { |
<?php // don't copy this line your code | |
if ( is_callable( 'Custom_Typekit_Fonts_Render::get_instance' ) ) { | |
remove_action( 'wp_head', array( Custom_Typekit_Fonts_Render::get_instance(), 'typekit_embed_head' ) ); | |
add_action( 'wp_head', 'your_prefix_typekit_embed_head' ); | |
} | |
function your_prefix_typekit_embed_head() { | |
$kit_info = get_option( 'custom-typekit-fonts' ); | |
if ( empty( $kit_info['custom-typekit-font-details'] ) ) { |
<?php | |
/** | |
* Change the product gallery thumbnail size. | |
* | |
* @param Array $size | |
* @return Array | |
*/ | |
function your_prefix_modify_gallery_thumbnail_size( $size ) { | |
<?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 ) { |