Hi All,
I am looking for a way to move the category title from the original “hidden” place (display:none in enfold css).
Basically the category title is in the enfold title & breadcrumb container, therefor the actual woocommerce title has been hidden.
However I am not using this title & breadcrumb container and the title is still hidden. When i unhide the title, its outside of the main content container.
Does anybody know of a way to move this title to the main content container, just above the category description? I know you can add this title to the description, but when automating workflows for clients this isnt really handy.
Preferably a childtheme function to add to functions.php
Best regards,
Thomas
Hey borkent,
Could you provide to us your WP credentials?
Best regards,
John Torvik
Hi John,
Site is still in development/ xampp.
Is the description of the problem not clear?
Best regards,
Thomas
Hi,
Can you try to add this code at the bottom of functions.php:
function add_custom_script(){
?>
<script type="text/javascript">
(function($){
function move_product_title() {
$(".shop_columns_3 .page-title").prependTo(".template-shop.content");
}
move_product_title();
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Hope this helps :)
Best regards,
Nikko
perfect! works like a charm, thank you!
Hi,
Glad we could help. Thanks for using Enfold :)
Best regards,
Nikko