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
<!doctype html> | |
<html> | |
<head> | |
<title>Floating UI Tutorial</title> | |
<style> | |
body { | |
display: flex; | |
height: 100vh; | |
} |
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
add_action( 'wp', 'astra_woo_sidebar_layout' ); | |
function astra_woo_sidebar_layout() { | |
if ( is_shop() || is_product_taxonomy() || is_checkout() || is_cart() || is_account_page() ) { | |
add_filter( 'astra_page_layout', 'astra_page_layout_woo_no_sidebar', 100 ); | |
} | |
} | |
function astra_page_layout_woo_no_sidebar( $sidebar_layout ) { |
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
add_action( 'init', 'astra_remove_read_time_filter', 11 ); | |
function astra_remove_read_time_filter() { | |
$obj = Astra_Ext_Blog_Pro_Markup::get_instance(); | |
remove_filter( 'astra_meta_case_read-time', array( $obj, 'reading_time_content' ), 10, 3 ); | |
} | |
add_filter( 'astra_meta_case_read-time', 'astra_override_reading_time', 10, 3 ); | |
function calculate_reading_time( $post_id ) { |
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
add_filter( 'astra_related_posts_title', 'astra_change_related_posts_title' ); | |
function astra_change_related_posts_title( $title ) { | |
$custom_title = 'Your Custom Title'; | |
return str_replace( 'Related Posts', $custom_title, $title ); | |
} |
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
add_filter( 'astra_comment_form_default_markup', 'astra_edit_comment_textarea_row_col' ); | |
function astra_edit_comment_textarea_row_col( $args ) { | |
$args['comment_field'] = '<div class="ast-row comment-textarea"><fieldset class="comment-form-comment"><div class="comment-form-textarea ast-col-lg-12"><label for="comment" class="screen-reader-text">' . esc_html( astra_default_strings( 'string-comment-label-message', false ) ) . '</label><textarea id="comment" name="comment" placeholder="' . esc_attr( astra_default_strings( 'string-comment-label-message', false ) ) . '" cols="5" rows="5" aria-required="true"></textarea></div></fieldset></div>'; | |
return $args; | |
} |
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
add_action( 'wp_enqueue_scripts', 'dequeue_astra_css' ); | |
function dequeue_astra_css() { | |
wp_dequeue_style( 'astra-theme-css' ); | |
} |
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
add_filter( 'woocommerce_get_terms_and_conditions_checkbox_text', 'astra_change_terms_text_checkout_page' ); | |
function astra_change_terms_text_checkout_page( $text ) { | |
$text = 'This is my new text for Terms and Condition on Checkout Page.'; | |
return $text; | |
} |
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
/** | |
* Update Search Nothing Found String and Search Input Box Placeholder Strings | |
* | |
* @param array $strings List of default strings used in theme | |
* @return array $strings | |
*/ | |
function default_strings_callback( $strings ) { | |
// Replace by with empty string. | |
$strings['string-blog-meta-author-by'] = ''; |
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
function astra_site_branding_markup() { | |
?> | |
<!-- My Custom Markup --> | |
<div class="site-branding"> | |
<div | |
<?php | |
echo astra_attr( | |
'site-identity', | |
array( | |
'class' => 'ast-site-identity', |
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 | |
/** | |
* Google fonts array file. | |
* | |
* @package Astra Child | |
* @author Astra | |
* @copyright Copyright (c) 2020, Astra | |
* @link https://wpastra.com/ | |
*/ |
NewerOlder