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( '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_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
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/ | |
*/ |
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
@media (min-width: 1200px) { | |
/* With container - Sidebar/No Sidebar */ | |
.ast-separate-container.ast-right-sidebar .entry-content .wp-block-group.alignwide, | |
.ast-separate-container.ast-left-sidebar .entry-content .wp-block-group.alignwide, | |
.ast-separate-container.ast-right-sidebar .entry-content .wp-block-cover.alignwide, | |
.ast-separate-container.ast-left-sidebar .entry-content .wp-block-cover.alignwide, | |
.ast-no-sidebar.ast-separate-container .entry-content .wp-block-group.alignwide, | |
.ast-no-sidebar.ast-separate-container .entry-content .wp-block-cover.alignwide { | |
margin-left: -20px; | |
margin-right: -20px; |
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 | |
/** | |
* Template Name: Location | |
*/ | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages |
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_next_post_link_product($format='%link »', $link='%title', $in_same_cat = false, $excluded_categories = '') { | |
adjacent_post_link_product($format, $link, $in_same_cat, $excluded_categories, false); | |
} | |
function astra_previous_post_link_product($format='« %link', $link='%title', $in_same_cat = false, $excluded_categories = '') { | |
adjacent_post_link_product($format, $link, $in_same_cat, $excluded_categories, true); | |
} | |
function adjacent_post_link_product( $format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true ) { | |
if ( $previous && is_attachment() ) |
NewerOlder