D-Zs Posted December 13, 2012 Share Posted December 13, 2012 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 More sharing options...
Carolina Custom Designs Posted December 13, 2012 Share Posted December 13, 2012 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 2 1 Link to comment Share on other sites More sharing options...
D-Zs Posted December 13, 2012 Author Share Posted December 13, 2012 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 More sharing options...
Carolina Custom Designs Posted December 13, 2012 Share Posted December 13, 2012 (edited) 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 December 13, 2012 by Carolina Custom Designs (see edit history) Link to comment Share on other sites More sharing options...
D-Zs Posted December 13, 2012 Author Share Posted December 13, 2012 (edited) I need the back button to appear on all my pages, and I need it to be located as seen on this screendump: Edited December 13, 2012 by D-Zs (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now