-
AuthorPosts
-
December 18, 2015 at 7:21 am #554853
Hi:
The pagination on the top of my store has lost it’s links to the page, when you click on the page number it no longer goes to that page. The ones on the bottom still work. Is there a fix for that?
http://ilovetylermadison.biz/shop/
From this topic, https://kriesi.at/support/topic/enfold-woocommerce-storefront-modification/, I had used this code from Ismael to arrange the layout:
.woocommerce-page .entry-content-wrapper > .pagination:nth-child(1) {
position: absolute;
right: 50px;
}I just now noticed the linking no longer worked. Hope you can help.
Thanks
– Michael
December 20, 2015 at 2:26 am #555467Hey blaircomm!
It looks like your using Enfold 3.3.1. Go ahead and update to the latest version, 3.4.7 and let us know when your done.
Be sure to deactivate all plugins while testing.
Best regards,
ElliottDecember 22, 2015 at 12:05 am #556231I have updated everything. WP is 4.4, and Enfold updates as well as WooCommerce and WPML. Still the same issue.
This is the code I used to place the pagination at the top of the product page:
add_action( ‘woocommerce_before_shop_loop’, ‘enfold_customization_shop_pagination’, 10);
function enfold_customization_shop_pagination()
{
global $avia_config;
if(isset($avia_config[‘dynamic_template’])) return;
if(isset($avia_config[‘overview’] )) echo avia_pagination(”, ‘nav’);
}This was the code I used to arrange the layout:
.woocommerce-page .entry-content-wrapper > .pagination:nth-child(1) {
position: absolute;
right: 50px;
}- This reply was modified 8 years, 11 months ago by blaircomm.
December 23, 2015 at 1:44 am #556809Hi:
This is the code from the bottom pagination that is missing on the top of page pagination:
<nav class=’pagination’><span class=’pagination-meta’>Page 1 of 5</span><span class=’current’>1</span>2345</nav>
The nav class classes ‘pagination’ and pagination-meta’ are missing. I can hack them into the script, and it works, but it places the pagination out of the frame—i.e. above sidebar and 2/3 page frame with a big space down to the storefront—and gives an error in the code inspector, though it works on the user side.
So the interacrtivity of the pagination at the top seems to be because of missing classes within the equation, and I don’t know how to include them properly.
Any help? This equation needs rewriting to include the interactivity from ‘pagination’ and ‘pagination-meta’:
add_action( ‘woocommerce_before_shop_loop’, ‘enfold_customization_shop_pagination’, 10);
function enfold_customization_shop_pagination()
{
global $avia_config;
if(isset($avia_config[‘dynamic_template’])) return;
if(isset($avia_config[‘overview’] )) echo avia_pagination(”, ‘nav’);
}Thanks.
– Michael
December 23, 2015 at 11:53 pm #557236Hi!
What is the username for the login?
Best regards,
ElliottDecember 24, 2015 at 12:13 am #557254Hi:
See below:
December 28, 2015 at 1:17 am #557630Hi!
Add this to your custom CSS.
.woocommerce-page .entry-content-wrapper > .pagination:nth-child(1) { z-index: 99999 !important; }
Cheers!
ElliottDecember 28, 2015 at 11:15 pm #557881Thank you very much!
I now have it all working perfectly, and here is the code in one place, just in case anyone else wants to add pagination in a neat, nice layout at the top of their storefront—essential for large stores:
Add snippet—I prefer a snippet plugin so as to not modify theme files:
add_action( ‘woocommerce_before_shop_loop’, ‘enfold_customization_shop_pagination’, 10);
function enfold_customization_shop_pagination()
{
global $avia_config;
if(isset($avia_config[‘dynamic_template’])) return;
if(isset($avia_config[‘overview’] )) echo avia_pagination(”, ‘nav’);
}Add to custom CSS—(he @media part eliminates the pagination below 1128px, the point at which it starts to overlap:
.woocommerce-page .entry-content-wrapper > .pagination:nth-child(1) {
position: absolute;
right: 50px;
z-index: 99999 !important;
}
@media only screen and (max-width: 1128px) {
.woocommerce-page .entry-content-wrapper > .pagination:nth-child(1) {display: none;
}
}Or, to show the pagination stacked below 1028px widths:
@media only screen and (max-width: 1128px) {
.woocommerce-page .entry-content-wrapper > .pagination:nth-child(1) {position: relative;
right: 0px;
z-index: 0 !important;
}
} -
AuthorPosts
- The topic ‘Enfold WooCommerce storefront top pagination no longer linked to pages.’ is closed to new replies.