-
AuthorPosts
-
August 31, 2019 at 2:12 pm #1132524
Hello, how can I get page numbers also on top of the page and not only at the bottom?
September 4, 2019 at 11:35 am #1133781Hey Henk,
Which page numbers are you referring to? I am not seeing any here.
Could you please attach some screenshots of the issue and please specify the page where is it happening.
Best regards,
VictoriaSeptember 5, 2019 at 4:29 pm #1134487Hello Victoria,
If a subject exist out of more than 1 page, at the bottom of the page appears 1 2 3 …..
When the page is very long it would be better if this page numbers would be also at the top (before the text). Is that possible?Best regards,
HenkSeptember 7, 2019 at 4:42 pm #1135391Hi Henk,
Here is the code you can put in your funtions.php to the aabeve website
function move_pagination_top() { ?> <script type="text/javascript"> (function($) { $(window).load(function() { $('.pagination-wrap.pagination-slider').clone().prependTo("#after_section_1 .post-entry.post-entry-type-page.post-entry-19007"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'move_pagination_top');
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 7, 2019 at 4:57 pm #1135399Hello Victoria,
Thank you for the code.
However I got the following error message when I enter this in the functions.php:“Your PHP changes have been reversed due to an error on line 2462 in the wp-content / themes / enfold / functions-enfold.php file. Repair and try again”
syntax error, unexpected “?”Also I see in the code “move_pagination_top”. Does this mean, that the page numbers are appearing only at the top then? Due to the the big number of entries I like to have the page number on top AND at the bottom of the page if that’s possible.
Best regards,
HenkSeptember 9, 2019 at 7:04 pm #1136178Hi Henk,
It is better to use a child theme to add this code in the functions.php there and if it does not work through the editor, you’ll need to edit the files via FTP.
Here are the docs for you
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.