Created
September 5, 2018 12:03
-
-
Save Nikschavan/cf21b4453734a0e9c82b9c620992c6a3 to your computer and use it in GitHub Desktop.
Remove Organization schema from Astra Theme
This file contains hidden or 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 // 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() { | |
?> | |
<div class="site-branding"> | |
<div class="ast-site-identity"> | |
<?php astra_logo(); ?> | |
</div> | |
</div> | |
<!-- .site-branding --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please add what settings should be used in the custom layout