-
AuthorPosts
-
March 2, 2017 at 6:50 pm #754464
Hi,
https://kriesi.at/support/topic/moving-the-description-of-product-category-of-the-page-down/ showed me how to move the category description to the bottom of the page. But now the pagination / page numbers of the category seem to far away from the products. Is it possible to show it in the following order:
1) products
2) pagination
3) category descriptionMarch 7, 2017 at 4:23 pm #757070Hey Roderick,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
YigitMarch 9, 2017 at 12:48 pm #758317March 14, 2017 at 10:14 am #760550Any luck with this guys?
March 14, 2017 at 12:34 pm #760665Hi,
I get a “NOT FOUND ERRROR” when trying to open your link: http://www.wphelden.nl/product-categorie/sierkussens/
Please share with us a precise link where we can see and inspect the elements in question.
Best regards,
AndyMarch 14, 2017 at 12:35 pm #760666Hi,
sorry we moved it to another domain: https://www.woonkussens.nl/product-categorie/sierkussens/
March 17, 2017 at 4:23 pm #762570Hi,
no idea what you want to achieve to be honest. Can you highlight using screenshots please (imgur.com, Dropbox)? and make sure it the right link where we can exactly see the elements in question.
Best regards,
AndyMarch 17, 2017 at 4:44 pm #762577I think it can be done without a screenshot, ket me try one more time ;)
If you look at categorypage like https://www.woonkussens.nl/product-categorie/sierkussens/ the order on the page is:
1) category image
2) filter
3) products
4) category description
5) pagenumbersWe want to switch 4 and 5 so below the products should come the pagenumbers and below that the page description
March 21, 2017 at 12:07 pm #764137Hi roderickvs,
Please add code in the functions.php file.
add_action('wp_footer', 'ava_new_custom_script'); function ava_new_custom_script(){ ?> <script type="text/javascript"> (function($) { function a() { $('.pagination').insertBefore('.term-description'); } $(window).load(function() { a(); }); })(jQuery); </script> <?php }
Let us know if this was helpful or if you have any more questions.
Best regards,
VictoriaMarch 22, 2017 at 11:47 am #764719i think this conflicts with https://kriesi.at/support/topic/moving-the-description-of-product-category-of-the-page-down/ because I get the pagenumbers forts then the description and then the products
i’d really live it to be:
– pages
– products
– descriptionIs that possible?
March 23, 2017 at 12:20 pm #765362Hi roderickvs,
Of course, it’s possible. We don’t know what kind of code you added already, you should read both functions and try to make one that does exactly what you need.
In the original questions you just wanted to swap pagination with category description.
Now you want pagination on top of the page, is that correct?Best regards,
VictoriaMarch 23, 2017 at 12:24 pm #765366:)
I’ve added the code provided in https://kriesi.at/support/topic/moving-the-description-of-product-category-of-the-page-down/ first to get the description below the products for conversion reasons. But then we noticed that none of the visitors saw the pagenumbers anymore.
So we want the following order on the page:
– pages (at the top yes)
– products
– description of the category (because nobody except Google reads that ;))March 24, 2017 at 5:57 pm #766313Hi roderickvs,
Of course, that is possible :)
Please add code in the functions.php file.
add_action('wp_footer', 'ava_new_custom_script'); function ava_new_custom_script(){ ?> <script type="text/javascript"> (function($) { function a() { $('.term-description').insertAfter('.products'); } $(window).load(function() { a(); }); })(jQuery); </script> <?php }
Let us know if you have any more questions.
Best regards,
VictoriaMarch 28, 2017 at 2:58 pm #768169If I add both these codes the child them functions php the site goes 500 on me so that does not work :(
If I add just the first the site still works, but the pages are at the bottom of the page again where nobody can find them
add_action(‘wp_footer’, ‘ava_new_custom_script’);
function ava_new_custom_script(){
?>
<script type=”text/javascript”>
(function($) {
function a() {
$(‘.term-description’).insertAfter(‘.products’);
}$(window).load(function() {
a();
});
})(jQuery);
</script>
<?php
}add_action(‘wp_footer’, ‘ava_new_custom_script’);
function ava_new_custom_script(){
?>
<script type=”text/javascript”>
(function($) {
function a() {
$(‘.pagination’).insertBefore(‘.term-description’);
}$(window).load(function() {
a();
});
})(jQuery);
</script>
<?php
}March 28, 2017 at 6:49 pm #768380Hi roderickvs,
It’s because you’re adding the same action twice with the same function.
You need only one. Here it is:
add_action(‘wp_footer’, ‘ava_new_custom_script’); function ava_new_custom_script(){ ?> <script type=”text/javascript”> (function($) { function a() { $(‘.pagination’).insertBefore(‘.products’’); $(‘.term-description’).insertAfter(‘.products’); } $(window).load(function() { a(); }); })(jQuery); </script> <?php }
If you need further assistance please let us know.
Best regards,
VictoriaApril 5, 2017 at 12:07 pm #772445Well if I do that in the child theme functions, nothing happens if I do it in the main functions.php the site goes 500 on me ..
April 6, 2017 at 10:08 pm #773539Hi roderickvs,
DO you have another function that you added in your main functions.php that is called “ava_new_custom_script”?
Best regards,
VictoriaApril 7, 2017 at 9:39 am #773799Replced the current functions.php with the latest functions.php from Enfold and placed you code at the bottom of the functions.php just before
/*
* register custom functions that are not related to the framework but necessary for the theme to run
*/require_once( ‘functions-enfold.php’);
/*
* add option to edit elements via css class
*/
// add_theme_support(‘avia_template_builder_custom_css’);Cleared the cache and now no 500 error, but the order is still the same as the original Enfold theme as you can see on: https://www.woonkussens.nl/product-categorie/sierkussens/
April 9, 2017 at 3:12 pm #774979Hi roderickvs,
Here is the code:
add_action('wp_footer', 'ava_new_custom_script'); function ava_new_custom_script(){ ?> <script type="text/javascript"> (function($) { function a() { $('.pagination').insertBefore('.products'); $('.term-description’).insertAfter('.products'); } $(window).load(function() { a(); }); })(jQuery); </script> <?php }
Put in your child theme functions.php, there was an issue with the single quotes.
Let me know if it worked this time.
Best regards,
VictoriaApril 11, 2017 at 2:22 pm #776048no whatever I do here, the website goes 500 on me.
It’s a default Enfold site and I’ve replaced the normal functions.php with the earlier changes with the default functions.php so I have no idea why this website keeps going 500 on me with every code you try to help me with :(
April 17, 2017 at 7:42 am #778573Hi,
This is fixed. I found out the cause of the problem was in the Enfold (parent) themes functions.php, the single and double quotes have been changed (usually this happens if you copy and paste code from email), which also affects the functions.php in the child theme, not allowing you to add codes that results to 500 Internal Server Error. I commented out the code from the parent theme’s functions.php and added the code Victoria gave to you in the child theme’s function.php and the problem is resolved :)
Best regards,
NikkoApril 19, 2017 at 6:10 pm #780079Hi!
This is my second enfold Installation and nothing works fine (with my first I had no Problems at all) and I’m Kind of frustrated at the Moment.
The wordpress implementation is fine until I install the enfold theme.
First I had this error “Parse error: syntax error, unexpected T_FUNCTION in /home/content/54/8435454/html/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php on line 109”, then I deinstalled the theme and now I have an internal Server error.
As I’m not a web developer I kindly ask for your help. Find my log-in in private.
Best regards
SonjaApril 20, 2017 at 2:06 pm #780532Hi Sonja,
I could not login with these credentials. Please update the credentials.
Best regards,
VictoriaApril 21, 2017 at 8:10 am #781026Hi Victoria!
Sorry it was the wrong link
Best regards,
Sonja.April 25, 2017 at 3:19 pm #782921Hi Sonja,
Today I was able to login to your dashboard, did not see any problem, besides the Layer Slider that need update. The update will be available very soon with the new version of Enfold.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.