To insert code use <code>...</code>.
  • on one of my pages, I have group of tabs containing two tabs.
    The tabs contain contact info and a google map for different offices.

    I've just noticed that when the gmap shortcode is included within the tab, that it results in none of the tab content being displayed.

    Example code below.
    If I put the gmap code outwith the tabs, it displays correctly.

    Currently on striking 5.1.7 and wordpress is up to date.
    This certainly used to work without a problem, not sure when it stopped.

    Can't see anything obviously wrong.

    [tabs]
    [tab title="Office 1"]
    <h3>Office 1</h3>
    [contact_info color="black" phone="0123 456 7890" fax="0123 456 7890" email="emailaddress" address="address" city="city" zip="12345"]
    <h3>Find Us</h3>
    [gmap width="400" height="250" latitude="51.50813" longitude="-0.12801" zoom="11"]
    [/tab]
    [tab title="Office 2"]
    <h3>Office 2</h3>
    [contact_info color="black" phone="0123 456 7890" fax="0123 456 7890" email="emailaddress" address="address" city="city" zip="12345"]
    <h3>Find Us</h3>
    [gmap width="400" height="250" latitude="51.50813" longitude="-0.12801" zoom="11"]
    [/tab]
    [/tabs]
  • 7 Comments sorted by
  • Hi AlasdiarL,

    You can not have two gmaps with the adress field filled in the same page.

    If you use latitude longitude values it works.

    http://bit.ly/yh3SU6

    Best regards,
    BackuPs
  • Hi BackuPs,

    I'm not using the gmap address fields.
    I'm just using the longitude/latitude values.

    The address info above is related to the Contact Info widget that is also displaying info above the map.

    The same issue happens if I only display one tab.
    I'll also add that removing the contact info part of it makes no difference.

    Thanks
  • Hi Alasdairl,

    Are you using the latest version of striking? Because 5.1.5 had a gmap problem which is fixed now.

    here is the code i used.


    [tabs]
    [tab title="Tab1"]
    [gmap latitude="50.054355" longitude="6.7657765" zoom="12" html="My address{linebreak}My City"]
    [/tab]
    [tab title="Tab2"]
    [gmap latitude="51.50813" longitude="-0.231432" zoom="12" html="My address{linebreak}My City"]
    [/tab]
    [tab title="Tab 3"]
    Content of tab 3
    [/tab]
    [tab title="Tab 4 "]
    Content of tab 4
    [/tab]
    [tab title="Tab 5"]
    Content of tab 5
    [/tab]
    [tab title="Tab 6"]
    Content of tab 6
    [/tab]
    [/tabs]


    does this work at your site?

    I inserted your code in my website and it works.

    So what comes into my mind.

    Either a plugin is blocking this or you do not have the latest striking version or a cache program is tricking you.

    if all not i have to login to your site and see what is happening.

    Best regards,
    BackuPs
  • That code doesn't show either.
    I'm using Striking 5.1.7 on Wordpress 3.3.1.
    I've tried it with all plugin's disabled and have uninstalled the cache plugin I had (although it was disabled before anyway)

    I've also tried going back to just the striking theme rather than the child theme I use but no joy.

    the code works outwith a tab so the gmap part itself does seem to work.

    Also tried it on couple of browsers on a couple of computer
  • Hi Alasdairl,

    Hmm this is curious. I am using the same wp and striking and it works. Do you have a link to the page where this is happening so i can have look at the code?

    I will also ask Kaptinlin to take a look at your problem. So I will send him a email about this and he probably will ask you for the login details on your website.

    Sorry for the inconvenience.

    Best regards,
    BackuPs
  • right, I have figured out what was causing it.

    I had enabled the advanced setting for "Move Js To Bottom" a month ago when I was trying to get to the bottom of some performance issues I was having.

    With that disabled, the maps are displaying correctly again.

    Thank's for helping narrow it down.
  • Hi Alasdairl,

    Thanks for getting back to this.

    Best regards,
    BackuPs
This discussion has been closed.
All Discussions