jacqacker
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change Address on Google MapI 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>Forum: Fixing WordPress
In reply to: Change Address on Google MapSo 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
Forum: Fixing WordPress
In reply to: Change Address on Google MapThank 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?
-
<div class=”location”>