-
AuthorPosts
-
March 16, 2021 at 10:18 am #1288441
Hi,
I posted a support ticket earlyer and we found a solution and then the topic was closed to new replies. See this topic: https://kriesi.at/support/topic/move-category-description-below-products/?login_error#post-1281479Now I realise when I create a new category the description stays in the top and are not moved to the bottom. Why is that?
March 18, 2021 at 8:51 am #1288898Hi ditteditte,
Have you added the code in functions.php?
If yes and it still does not work then, please post us your login credentials (in the “private data” field), so we can take a look at your backend.- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoMarch 18, 2021 at 9:14 am #1288900Thank you for your assistance. I went in this morning to double check that I had the right code in the function.php
It was there so i just saved the file and closed it. I then went to the pages where the category description didn’t move and all of a sudden it had moved to the bottom… It was like saving the function.php once again tricked it to work…. Does that make sence?March 18, 2021 at 4:20 pm #1289015Hmm now I figured out what the problem is. When there is no pagination (because there is not enough products) the category description don’t move as there is no pagination to move it below. Can you help me modify the code so that the categroy description will move even if there is no pagination?
function av_move_wc_cat_description(){
?>
<script>
jQuery(window).load(function(){
jQuery(“.kategoritekst”).insertAfter(jQuery(“.pagination”));
});
</script>
<?php
}
add_action(‘wp_footer’, ‘av_move_wc_cat_description’);March 19, 2021 at 3:25 pm #1289204Hi ditteditte,
I see, can you give us a link to the page mentioned? (with and without pagination) so we can inspect on the pages and try to adjust your code accordingly.
Best regards,
NikkoMarch 22, 2021 at 1:06 pm #1289618Page without pagination: https://nederkjaersholm.dk/produkt-kategori/brugskunst-online/glasklokker/
With pagination: https://nederkjaersholm.dk/produkt-kategori/brugskunst-online/bakker-og-fade/March 23, 2021 at 2:27 pm #1289876Hi ditteditte,
Can you try to replace your jQuery code with this instead (inside the script):
jQuery(window).load(function(){ jQuery(".woocommerce-page .entry-content-wrapper").append(jQuery(".kategoritekst")); });
Best regards,
NikkoMarch 24, 2021 at 12:11 pm #1290077Perfect! Thank you!!!
March 24, 2021 at 12:16 pm #1290079Hmm if I dont have an even number of products the description moves up along the last products so it sits at the one site insted of underneath. Please see this page: https://nederkjaersholm.dk/produkt-kategori/brugskunst-online/smaa-moebler/
March 24, 2021 at 12:25 pm #1290080I figured it out myself. Thank you for your assistance.
March 24, 2021 at 1:17 pm #1290103Hi ditteditte,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Move Category Description below products’ is closed to new replies.