Add map shortcode to a template's tabbed content … not working

Home Forums MapPress Support Add map shortcode to a template's tabbed content … not working

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #12499
    LakesMarketing
    Participant

    Hi Chris,

    Thanks for the future proof solution. I would definitely prefer to use that if I can.

    Please can I check three things:

    1. Have I understood correctly that this would simply need me putting my mappress shortcode in div tags, e.g.

    <div class=”mapp-canvas”>[mappress mapid="1"]</div>

    2. When I insert the code, exactly as you had it, it says their is a syntax error on the first line:

    jQuery(‘.mapp-canvas’).each(function() {

    Is that correct?

     

    3. Do I insert this within the click function as before on the script for the tab or is this an entirely new bit of code that needs to be on it’s own (not part of the tab code) but still in the same .js file

     

    Thanks

     

     

    #12502
    Chris
    Keymaster

    Hi,

    1.  No, the plugin writes the classes, you don’t need to do it

    2.  Probably because of #1

    3.  In the click function

    Are you sure you can’t just use jQuery UI tabs?  It would save you from having to reinvent this code which is already part of the plugin.

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.