Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-05-13 00:03:40

baskabar
New Member
Registered: 2014-05-12
Posts: 2

Open "google_map_pointer_link" Theme Variable in a new browser

I have successfully added a link to Google Maps for my business location in the “google_map_pointer_link” field on the Theme Variables page. However, when I click on the map pointer at the front end the link redirects me to Google Maps in the same browser window, effectively taking clients away from my website (not best practice).

How can I edit the Google Maps link so that it opens in a new browser window at the front end? Do I edit it in the “google_map_pointer_link” field or somewhere else?

Your help with this is greatly appreciated.

Offline

#2 2014-05-13 00:12:26

baskabar
New Member
Registered: 2014-05-12
Posts: 2

Re: Open "google_map_pointer_link" Theme Variable in a new browser

It looks as though I could edit this line in the tbs_theme_variables page:

<txp:variable name=“google_map_pointer_link” value=‘https://www.google.com.au/maps/place/1%2F4+Waterford+St/@-27.4253322,153.0036197,17z/data=!3m1!4b1!4m2!3m1!1s0x6b91577aa29f0631:0×7c9404ea576b79d7’ />

What code should I add to have it open in a new Browser Window?

Offline

#3 2014-05-13 09:34:22

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Open "google_map_pointer_link" Theme Variable in a new browser

Hi baskabar, and welcome to the Textpattern forum!

The variable google_map_pointer_link will be used at another (or several) point(s) in your theme installation. We’d need the surrounding code. As this can sit in pages and forms, I’d recommend to install a search plugin for searching for the variable, smd_where_used (link in my post signature). If you don’t feel comfortable doing so, you can, of course, also do a manual search through pages and forms one by one.

A helpful hint to other forum members might be the name of your theme.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB