Last active
January 4, 2018 09:13
-
-
Save johnmccole/e3ed7a27242f5627f263b99fcc96f856 to your computer and use it in GitHub Desktop.
Installing WooCommere to a site using the Sage theme causes shop pages to have duplicate content. To resolve this, create several new files, header-shop.php, footer-shop.php and sidebar-shop.php. This will remove both instances of the element. You can then edit files with custom content to add required elements (e.g titles, breadcrumbs). Example…
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 // this file is to stop duplicate headers - DO NOT EDIT ?> | |
<?php | |
if ( function_exists('yoast_breadcrumb') ) { | |
yoast_breadcrumb(' | |
<p id="breadcrumbs">','</p>' | |
); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment