Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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’);

    #1276140

    Hey ditteditte,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1276259
    #1276404

    Hi 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,
    Victoria

    #1276736

    of course

    #1277738

    Have you found a solution?

    #1277991

    Hi 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,
    Victoria

    #1278011

    Oh 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.

    #1278326

    Hi 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,
    Victoria

    #1278967

    Hmm 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?

    #1280268

    Hi 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,
    Victoria

    #1280756

    When 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.

    #1281479

    Hi ditteditte,

    It should be working now. Please check.

    Best regards,
    Victoria

    #1281619

    Perfect! Thank you for your assistance!

    #1281919

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1281942

    No everything is good. Thank you.

    #1282126

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘Move Category Description below products’ is closed to new replies.