Skip to content

Instantly share code, notes, and snippets.

View Vitkalova's full-sized avatar

Olga Vitkalova Vitkalova

View GitHub Profile
@Vitkalova
Vitkalova / function.php
Last active June 11, 2018 20:18
Display WooCommerce Product Category description on every page except first page
/* 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>';
@Vitkalova
Vitkalova / In your functions file
Created January 5, 2018 02:06 — forked from SJ-James/more-divi-social-icons.php
Divi social icons extension
<?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) {