Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

php coding - fix the previous page link

The current "back to" link goes to the parent category & not the previous page.
On this page:

Click on the Collage tile (3rd in 1st row) & see how the  "back to" link that takes you to the parent category & not the previous page.

Several of these posts belong to more than one category.  I want the "back to link" on this page to go to the previous page,  not the parent category that is sometimes one of 2 or 3 parent categories & not the previous page.

Can you show me how to edit the php file to fix this?

Thank you!

Attached is the current single_product.php file.

1 Solution
You can add this line in your code to go back one page..

<a href="javascript:history.go(-1)" title="Return to the previous page">&laquo; Go back</a>

The code in your file is correct to go to the parent category. I will keep both the links on the product page. So user can decide where to go.
Alicia St RoseOwner & Principle Developer/DesignerCommented:
I'm not directly answering your question but just wanted to suggest that you move your bottom menu with "View Cart" to the top of the page. Right now it's below the fold and not very user friendly. You could move it to the very top right of your header...

The site looks great!

Okay, now I'll bud out because I don't have the answer to your question.

carolsanjoseAuthor Commented:
Thank you!!!

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now