queue  11
support
Results 1 to 4 of 4

Thread: Insert map into contact page

  1. #1

    Insert map into contact page

    Hey Guys,

    I am having trouble inserting a map into my "contact us" page.
    We use to have a contact from on our site, but we got rid of it as it's quite annoying. Now there is a void there, which I would like to insert a map.

    I have installed the WP google maps plugin, and have the shortcode, but I cant seem to find anywhere to insert the shortcode for it to fill that void to the left of "Where to find us".

    Please help with this matter.

    www.jessejames.co.za

    James

  2. #2
    Lead Coder Fabio's Avatar
    Join Date
    Aug 2011
    Posts
    2,081
    Hello,

    edit pagecontent-contact.php in the theme root folder, then change the line

    Code:
    // from
    <?php echo $contact->info; ?>
    
    // to
    <?php echo do_shortcode($contact->info); ?>
    then you should be able to include the shortcode directly in the Contact options, along with the other text you already have there.
    My cave is full of servers

  3. #3
    Hey Fabio,

    Thanks! One step closer now, just need the map to be to the left of text instead of just above it. There use to be a contact from there, which we got rid of, and it would be nice to have the map there.

    Thanks again,

    James

  4. #4
    Lead Coder Fabio's Avatar
    Join Date
    Aug 2011
    Posts
    2,081
    If you're not using the contact form at all, you can edit again the same file (pagecontent-contact.php in the theme root folder)

    Code:
    
    
    Code:
    // Remove all the form code
    <form> 
    .... 
    </form>
    
    // replace with
    <?php echo do_shortcode('INSERT THE MAP SHORTCODE HERE'); ?> 
    
    My cave is full of servers