Load a google map only when user clicks on it

You may also like...

17 Responses

  1. Minro says:

    hello i have purchased it – but i have problem – im not sure where i should put the js files ??

    Where should i put them

    • Blaz says:

      You should put .js files to the same folder where single-ad-listing.php is. So, root of Classipress theme.

      And thank you for your purchase. I’ll answer your other questions ASAP.

  2. Minro says:

    Also how do we make the picture apear?

    And one more problem the file i downloaded have file called cp_gmap3.php

    but in the code you let us add


    so do i have to change gmap3.php to cp_gmap3.php ??

    Please let me know!

    • Blaz says:

      This is my mistake. Yes, when calling it, you should call cp_gmap3.php. This was last minute change and I forgot to change it.

      Please let me know if there are any more problems.

  3. Minro says:

    Hi Blaz,
    I have renamed it but now when i press click to view map button i get this error

    Parse error: syntax error, unexpected ‘<' in C:\xampp\htdocs\wp-content\themes\classipress\includes\gmap3.php on line 9

    but i tried to replace



    And it worked! I think the file you sent have error can you please upload the file on your site or send it to my email?


    • Blaz says:

      There is just one extra


      in line 9. Just remove line 9. I will upload a new file.

      On my site I use first version of this code, but for blog I have adopted a few things, and apparently not everything works OK.
      If you agree I will refund your payment since you are helping me with this.

  4. Minro says:

    Hello Mate,
    No need for refund – I appreciate the job you are doing as this is a very nice mod,

    I have removed the line 9 but still the map don’t load – it load the dashed frame but no image inside,

    maybe i put the js files in wrong place ? Please tell me where i should put the js files ?

  5. Minro says:

    Please help me with this Blaz,
    As I’m doing this project for my client,

    I want from you to:
    1st) tell me where i should put the js files that i have downloaded
    2nd) send me the gmap3.php that you have on your site as this is the file that is working for me (the file i downloaded is not working for me)
    3rd) there is css missing for displaying the image please send me the css needed to display the map frame image

    Thank you,
    And im gonna donate for you once i finish this project 🙂

  6. Blaz says:

    There was a problem with calling jQuery function.
    Version 1.2.1 has this error fixed and you shouldn’t have any more problems with loading.

  7. remulus says:

    After several attempts, Blaze managed to make it to work, now is taking place in ClassiPress child theme
    Thank you for being prompt.

  8. Harry says:

    bery nice … working perfect …. great job .. fine price .. top support!!!!

  9. max says:

    I would like to change the map of the site does this map work on my theme??

  10. max says:

    Ok in this case have to buy that file for $ 2.49 right is not no right work?

  11. Classifieds says:

    does this work with classipress 3.4 ? if not can you update it.

  12. Andy says:

    hi how do i add background image to click to view map I’ve tried
    <a class="obtn btn_orange"Click to view map
    but this breaks my theme please can you help.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.