• Help! I am needing to update the address on the google map embedded on this home page https://olympuslsv.com/. Unfortunately, I cannot find the code anywhere. The theme was created custom and I can’t seem to find the home.php code to edit in the Theme Editor section. All I seem to have access to there is the Header and Footer. Also, there are no corresponding widgets that I can find installed for the map. I checked the coding on the contact form that is adjacent to the map on the home page, and the map is not connected there either. Any help would be greatly appreciated!! I am brand new to WordPress and am just trying to help the new owner’s of this company out. I am sure I am missing something obvious.

    Thanks everyone

    Jacqueline

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @jacqacker,

    Jacqueline, the map may have been created using the WP Google Maps
    plugin based on the code I see using my browser’s web developer tools: https://wordpress.org/plugins/wp-google-maps/. There should be a Maps menu inside the WordPress Admin dashboard.

    If not, there are several possible options for displaying a front page in WordPress: https://developer.wordpress.org/themes/basics/template-hierarchy/#front-page-display. Have you tried looking looking for one of those files, such as front-page.php?

    The correct file should be listed under Homepage in the Theme Editor.

    I also recommend looking for and editing the file by downloading it to your computer using FTP and editing it using a code editor. Something on the site might break if you edit the files directly inside the admin.

    • This reply was modified 3 years, 6 months ago by Niall Madhoo.
    Thread Starter jacqacker

    (@jacqacker)

    Thank you so much for the reply!

    I do have a file called index.php but the only code in it is this:
    <?php
    get_header();
    get_template_part( ‘templates/loop’, ‘content’ );
    get_footer();
    ?>

    I don’t have anything else from the list of options, unfortunately. Also, I do not see that the previous owner’s used a widget for the map – I’ve searched high and low. I downloaded WP Maps for myself in hopes that I could remove the old map and put my own in, but I can’t even figure out how to remove the old map since I can’t find where it was added 🙁

    One bit of information I forgot to add in my original post above – I found the original API Key (that’s the only thing I could find relating to the map at all) in the top of the Header on header.php in Theme Editor. Does that help at all?

    You’re welcome!

    Have you tried going to Pages > All Pages > Home to see if you can edit the home page from there?

    If not, there may be code for the map inside the functions.php file.

    Otherwise, could you please try logging in to the site’s hosting via FTP? Then navigate to the wp-content/themes/olympus. You may be able to find a file with the map code in that folder.

    Thread Starter jacqacker

    (@jacqacker)

    So sorry for the delay! Ionos was having connectivity problems for some users, and I was one of those users. Finally was able to get logged in and I found a file with code for the “get in touch” contact form and the map titled “template-contact-us.php”, but I cannot find that in the Theme Editor. Also, I am not sure where the “contact-us-page-map” may be. The “get in touch form id 21” is in the contact form section but I do not see the map in the code at all. Any ideas?

    Code for “template-contact-us.php”:

    <?php
    /*
    Template Name: Contact Us
    */
    ?>

    <?php
    get_header();
    if( have_posts() ) : while( have_posts() ) : the_post();
    if(has_post_thumbnail()) {
    $image = get_the_post_thumbnail_url();
    }
    else {
    $image = get_template_directory_uri(). ‘/images/about-banner.jpg’;
    }
    ?>
    <div <?php post_class(); ?> id=”post-<?php the_ID(); ?>”>
    <div class=”inner-page-banner contact-us” style=”background-image: url(‘<?php echo $image; ?>’);”>
    <div class=”inner-page-banner-outer”>
    <div class=”inner-page-banner-inner”>
    <h1>Contact Us</h1>
    <div class=”white-line”></div>
    </div>
    <div class=”breadcrumb-outer”>
    <div class=”container”>
    <div class=”breadcrumb-inner”>
    <?php if(function_exists(‘bcn_display’))
    {
    bcn_display();
    }?>
    </div>
    </div>
    </div>
    </div>

    </div>
    <div class=”clearfix”></div>
    <div class=”contact-us-content”>
    <div class=”container”>
    <span class=”cntc-lrg-title”>
    <?php if ( get_field(‘lets_get_in_touch_title’) ) {
    the_field(‘lets_get_in_touch_title’);
    }
    ?>
    </span>

    • <div class=”location”>
      <i class=”fa fa-map-marker” aria-hidden=”true”></i>
      </div>
      <p>
      <?php if ( get_field(‘address’) ) {
      the_field(‘address’);
      }
      ?>
      </p>
    • <div class=”location”>
      <i class=”fa fa-phone” aria-hidden=”true”></i>
      </div>
      <?php if ( get_field(‘phone_1’) ) {
      ?><?php the_field(‘phone_1’); ?> <br><?php
      }
      ?>
      <?php if ( get_field(‘phone_2’) ) {
      ?>“><?php the_field(‘phone_2’); ?> <?php
      }
      ?>
    • <div class=”location”>
      <i class=”fa fa-envelope” aria-hidden=”true”></i>
      </div>
      <?php if ( get_field(’email’) ) {
      ?>“><?php the_field(’email’); ?><br> <?php
      }
      ?>

    <div class=”clearfix”></div>
    <div class=”footer-contact-form-left contact-page”>
    <?php echo do_shortcode(‘[contact-form-7 id=”21″ title=”Get in Touch”]’); ?>
    </div>

    </div>
    </div>

    </div>

    <div class=”contact-us-page-map”>
    <div id=”map”></div>
    </div>

    <?php
    endwhile; else: endif; wp_reset_postdata(); wp_reset_query();
    get_footer();
    ?>

    Code for [contact-form-7 id=”21″ title=”Get in Touch”]:

    <div class=”get-in-touch-form”>
    <div class=”first-name-outer”>
    [text* first-name class:first-name placeholder “NAME”]
    </div>
    <div class=”get-touch-email-outer”>
    [email* email-address class:get-touch-email placeholder “EMAIL”]
    </div>
    <div class=”get-touch-phone-outer”>
    [number* number class:get-touch-number placeholder “NUMBER”]
    </div>
    <div class=”get-touch-subject-outer”>
    [text* subject class:subject placeholder “SUBJECT”]
    </div>
    <div class=”get-touch-message-outer”>
    [textarea* message class:get-touch-message placeholder “MESSAGE”]
    </div>
    <div class=”get-touch-submit-outer”>
    [submit “SEND MESSAGE”]
    </div>
    </div>

    I feel like I have to be missing something super obvious here….Any and all help is much appreciated. Thank you for your time

    Jacq

    Thread Starter jacqacker

    (@jacqacker)

    I did just find where they have put in all their code into Theme Editor. I didn’t realize there was an additional drop down and that I could expand at the bottom. Face/Palm

    I am still not sure where this is coming from to edit though…

    </div>

    <div class=”contact-us-page-map”>
    <div id=”map”></div>
    </div>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Address on Google Map’ is closed to new replies.