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
/* WooCommerce displays the product category description only on the first page of the category archive | |
and the category description will not be shown on page 2, 3, etc | |
Code below helps to to display the category description on all the paginated pages | |
Add the following code to your theme’s functions.php file: */ | |
function show_taxonomy_archive_description() { | |
if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) != 0 ) { | |
$description = wc_format_content( term_description() ); | |
if ( $description ) { | |
echo '<div class="term-description">' . $description . '</div>'; |
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 // << Remove opener if adding to functions.php | |
if ( ! function_exists( 'et_load_core_options' ) ) { | |
function et_load_core_options() { | |
global $shortname, $themename; | |
require_once get_template_directory() . esc_attr( "/options_{$shortname}.php" ); | |
$newOptions = []; | |
foreach ($options as $i => $optionArray) { |