I am setting up my store and want to have customers be able to click on an image or link and have that open in a separate tab or page. Is there a way to do that in Opencart?
I have an image I will put in the slideshow at the top of my page then link it to the new destination but how do I have it open in a new page so that they are both viewable by the person looking. I'm not super with HTML so that is why I am asking. Also having a few issues with setting up a multi store and the images not showing up on the other stores.
As this is for the slideshow, I am assuming you will be using the admin - Design - Banners section to add your images and links
The only way to make a link open in a new window using that method would be to add the link as follows:
The only way to make a link open in a new window using that method would be to add the link as follows:
Code: Select all
javascript:void(window.open('http://www.opencart.com','window_name'));
You cannot put a href in the design banners section link field, hence my post above using javascript
Here you go try this...
If you are going to make a mod for something that was answered a few posts back, you could at least have added a switch in admin to toggle new window or not. Now all slideshow links will open in new tabs
My bad, I didn't realise the OP only wanted one image to open in new tab
Hmm something to think aboutuksitebuilder wrote: ↑Tue Mar 14, 2017 4:05 amIf you are going to make a mod for something that was answered a few posts back, you could at least have added a switch in admin to toggle new window or not.
where I put this code or add every link with this codeuksitebuilder wrote: ↑Fri Mar 10, 2017 9:07 pmAs this is for the slideshow, I am assuming you will be using the admin - Design - Banners section to add your images and links
The only way to make a link open in a new window using that method would be to add the link as follows:
Code: Select all
javascript:void(window.open('http://www.opencart.com','window_name'));
Who is online
Users browsing this forum: No registered users and 168 guests