- This topic has 9 replies, 2 voices, and was last updated 4 years, 7 months ago by Tom.
-
AuthorPosts
-
September 18, 2019 at 8:24 am #1012711ustar
Hi, there!
To avoid duplicated content pages i use a custom code in the woocommerce/loop/pagination.php
The code change all URLs like category/page/1/ to categoty/
At the same time all other pages like category/page/2/, category/page/3/ etc. works.
So, almost everything works fine beside of next page and prev page buttons.
Those buttons looks like up and down angle brackets.
Could you please help me to find the cause?Best regards, Sergey.
September 18, 2019 at 4:20 pm #1013087TomLead DeveloperLead DeveloperHi there,
I’m not sure I understand – can you explain a bit more?
September 19, 2019 at 3:09 am #1013347ustarHi, Tom!
If you are on a page that has pagination (for example, https://dev.u-star.cz/boty/damske/), then when you click on the “2” button (in the buttom of the page), you will be taken to the page https://dev.u-star.cz/boty/damske/page/2/.
If after that click on the button “1”, then you will be taken back, but only the link will be already https://dev.u-star.cz/boty/damske/page/1/.Thus, for Google it is a duplicate of content.
To avoid this, after clicking on the “1” button, the link should be https://dev.u-star.cz/boty/damske/.For this, I use custom code in the template theme/generatepress-child/woocommerce/loop/pagination.php
The code does its job, but at the same time, the appearance of the buttons of pagination “forward” and “back” changes (these are class=”icon-angle-left” and class=”icon-angle-right”).
They do not look like arrows “left” and “right”, but both look like arrows “down”.
Here is a screenshot and my pagination.php the file: https://dropmefiles.com/Z0zqaSeptember 19, 2019 at 10:48 am #1013853TomLead DeveloperLead DeveloperAre you sure it’s necessary? I believe only WooCommerce does this (
/page/1
), but if you actually click on it, it redirects back to the first page without that in the URL: https://gpsites.co/merch/shop/page/2/I assume this means there’s a 301 redirect going on, which would prevent any duplicate content issues.
September 19, 2019 at 11:03 am #1013868ustarHi, Tom!
My question is not about redirection.
The main question is how the forward and backward pagination buttons look like. They currently look like down and down.
In the screenshot I sent you this is clearly visible.
If not, i’ll sent another image.Regards, Sergey.
September 19, 2019 at 6:36 pm #1014078TomLead DeveloperLead DeveloperIs there somewhere I can see them live? Your site has a 403 forbidden error for me right now.
September 20, 2019 at 12:25 am #1014178ustarhi, Tom!
To access to my dev site i need your IP.
This site is develiping now and closed for robots, because it is a copy of the live site. I can give an access for example for all ip in any subnet. Or create a TeamViewer session in time when you will be able to look. My time zone is CEST (Central European Summer Time) UTC/GMT +2 hours, but is not a problem, i will be onliene anytime you’ll say.Regards, Sergey.
September 20, 2019 at 9:57 am #1014674TomLead DeveloperLead DeveloperIs it possible to set it up on a temporary staging site behind a coming soon page? That way you can provide temporary login details and I can log in to take a look.
If not, shoot us an email and I’ll give you the IP: https://generatepress.com/contact
September 20, 2019 at 10:06 am #1014687ustarHi, Tom!
I made a request through the contact form.
September 22, 2019 at 10:17 am #1016012TomLead DeveloperLead DeveloperYou’re using this HTML:
<i class="icon-angle-right"></i>
However, there’s no right angle icon set to that element. It has a background image set as an SVG, but that’s the arrow pointing down.
You need to use CSS to specify the down angle image as the background to that specific class.
-
AuthorPosts
- You must be logged in to reply to this topic.