Tagged: archive, child theme, woocommerce
Hi,
I have this page (see private content).
I want the title to be next to the left sidebar above the term description.
I want the term description to be at the end of the page.
I tried to edit the archive-product.php of WooCommerce in my child theme but it makes no difference.
What can I do?
Hey Jarmo,
Sorry for the very late reply and thanks for your patience. To achieve what I believe you are looking for you can try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_script() { ?>
<script>
(function($) {
$('#top.archive.woocommerce-page .woocommerce-products-header .woocommerce-products-header__title').detach().insertBefore('.breadcrumb.breadcrumbs.avia-breadcrumbs');
$('#top.archive.woocommerce-page .woocommerce-products-header').detach().insertAfter('.template-shop.content');
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
Please see the screenshot in the Private Content area and let me know if I understood the position correctly.
Best regards,
Mike