Skip to content

Instantly share code, notes, and snippets.

@Nikschavan
Created September 5, 2018 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nikschavan/cf21b4453734a0e9c82b9c620992c6a3 to your computer and use it in GitHub Desktop.
Save Nikschavan/cf21b4453734a0e9c82b9c620992c6a3 to your computer and use it in GitHub Desktop.
Remove Organization schema from Astra Theme
<?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
}
@albertpruis
Copy link

Please add what settings should be used in the custom layout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment