Hi I am using Warehouse 2.0
On the product page in the theme there is an option to add another button which I am using for special orders etc. I have added a contact us page to that button. But I would like the contact page to open on another page/tab so the customer does not lose the current page that they are on.
Is there a way to do this? Also, is there a way to make that contact page a pop-up modal type page instead?
Thank you in advance.
Topic summary
A user working with Warehouse 2.0 theme wants to modify a contact page button on product pages. They have two specific requests:
Primary Goal: Make the contact page open in a new tab/window so customers don’t lose their current page position.
Solution Provided: Add target="_blank" and rel="noopener noreferrer" attributes to the anchor tag in the button code.
Secondary Question: Convert the contact page into a modal/pop-up instead of a separate page.
Modal Guidance: Check if the theme already has modal functionality (like size chart popups) that can be repurposed by changing the URL and button text. Creating custom modals for pages is considered an advanced customization, especially if the theme doesn’t already include modal features. For custom modal implementation, the responder offers direct assistance if the user provides store URL, theme name, and specific details.
add the
target="_blank"andrel="noopener noreferrer"in the anchor tag.> > For example:> >> [Link](http://your_url_here.html)>
https://stackoverflow.com/questions/15551779/open-link-in-new-tab-or-window
Modal - check if the theme has a size chart popup that can just be pointed to another page then change the verbiage in the themes locale editor (translations texts).
Making another page into modal for other pages is an advanced customization especially if a theme doesn’t already poses a modal feature (i.e. quickviews, size chart popups,etc)
If you need a modal customization you can contact me directly , info in signature, please provide context: store url, theme name, post url and any further customization details.