Jump to content

How to add "back to previous page" button?


D-Zs

Recommended Posts

Hi guys

 

Is there any way to add a "back to previous page" button in prestashop? Im using a Custom theme on www.cyklerogfritid.dk

 

I have searched within this forum and googled it alot but I can't find anything about it...

 

I have installed a breadcrumb module but it doesn't do the job good enough.

 

Do you have any ideas?

Link to comment
Share on other sites

Sure, you can do this rather easily. Just insert the following javascript where you want the 'back' link to appear.

 

<a href="javascript: history.go(-1)">Back</a>

 

Hope that helps.

 

Marty Shue

And this string should appear in this piece of code right here:

 

<!-- /Breadcrumb --><div id="primary_block" class="clearfix">

<h1>Scott Genius 730 (2013) </h1>

<a href="javascript: history.go(-1)">Back</a> <!-- right infos--> <div id="pb-right-column"> <!-- product img--> <div id="image-block"> <img src="http://www.cyklerogfritid.dk/215-374-large/scott-genius-730-2013-.jpg" title="Scott Genius 730 (2013) " alt="Scott Genius 730 (2013) " id="bigpic" width="300" height="300" /> </div> <!-- thumbnails -->

 

But I need it to be aligned to the right. So I need to add < align="right"> into the code right? so it looks like this:

<a href="javascript: history.go(-1)"><align="right">Back</a>

Link to comment
Share on other sites

But I need it to be aligned to the right. So I need to add < align="right"> into the code right? so it looks like this:

<ahref="javascript: history.go(-1)"><align="right">Back</a>

 

Well, it is pretty hard for me to know exactly what you are wanting to do. A link would be better or at least a screen capture.

 

At any rate, putting <align="right"> will do nothing. I'm guessing a bit here but this might do what you want:

 

<div style="float:right">
<a href="javascript: history.go(-1)">Back</a>
</div>

 

Or perhaps a better way

 

<div class="right">
<a href="javascript: history.go(-1)">Back</a>
</div>

 

Then in your global.css add

 

.right {float:right}

 

Hope that helps.

 

Marty Shue

Edited by Carolina Custom Designs (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...