-
AuthorPosts
-
January 28, 2021 at 10:23 am #1276014
Hi,
I want to move the category description from the top of the page to the bottom. I have tried this code and it does work, but it but the description in between the products and the pagination. Is there at way to move it below the pagination?function av_move_wc_cat_description(){
?>
<script>
jQuery(window).load(function(){
jQuery(“.term-description”).insertAfter(jQuery(“.products”));
});
</script>
<?php
}
add_action(‘wp_footer’, ‘av_move_wc_cat_description’);January 28, 2021 at 9:18 pm #1276140Hey ditteditte,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaJanuary 29, 2021 at 9:27 am #1276259January 29, 2021 at 8:36 pm #1276404Hi ditteditte,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
There are errors in JavaScript, we need to check.
Best regards,
VictoriaFebruary 1, 2021 at 11:02 am #1276736of course
February 4, 2021 at 3:53 pm #1277738Have you found a solution?
February 5, 2021 at 1:48 pm #1277991Hi ditteditte,
Sorry for the late reply, I could not get to the thread earlier.
Well, the div with the term-description class has the category title in it too and so all of it moves below.
Are you using HTML or the term desc too? Can you add a class to the p tag that is used there?
Best regards,
VictoriaFebruary 5, 2021 at 2:24 pm #1278011Oh sorry I might not have explained my self good enough. I am not interested in separating the category title and the description – it is supposed to stay together, but my problem is that it moves in between the products and the pagination (like you can see on your screenshot). I would like it to come in the following order: products, pagination and then category titel and description.
February 6, 2021 at 6:23 pm #1278326Hi ditteditte,
Oh, ok :)
Here is the code you can put in your funtions.php
function av_move_wc_cat_description(){ ?> <script> jQuery(window).load(function(){ jQuery(".term-description").insertAfter(jQuery(".pagination")); }); </script> <?php } add_action('wp_footer', 'av_move_wc_cat_description');
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 9, 2021 at 9:12 am #1278967Hmm it doesn’t move – nothing happens. I tried the old code and that doesn’t make it move either – but it did a week ago… how can that be?
February 13, 2021 at 5:16 pm #1280268Hi ditteditte,
I added the code to the functions.php in your child theme and it moves but not right away since it’s added to the footer hook and the jQuery and many other scripts execute first.
Best regards,
VictoriaFebruary 16, 2021 at 10:14 am #1280756When I login and view my site it moves perfectly, but when I am not logged in and seeing it like a regular user it is still in the top.
February 16, 2021 at 7:29 pm #1281479Hi ditteditte,
It should be working now. Please check.
Best regards,
VictoriaFebruary 17, 2021 at 9:21 am #1281619Perfect! Thank you for your assistance!
February 18, 2021 at 2:14 am #1281919Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonFebruary 18, 2021 at 9:01 am #1281942No everything is good. Thank you.
February 19, 2021 at 6:35 am #1282126Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Move Category Description below products’ is closed to new replies.