WordPress.org

Ready to get started?Download WordPress

Forums

Anyway to edit the Contacts page directly with coding? (2 posts)

  1. fosdesign
    Member
    Posted 1 year ago #

    Hi, I'm trying to edit the coding for the contacts page. It has the Google Maps plugin, but I'd like to add in Multiple Nodes on the maps. Currently I can only show one location with the use of the authors shortcodes. I was wondering...

    Is there a way to edit the contacts page directly, such as editing the homepage html? When I viewsource the contacts page, I can see where adding new coding will allow me to get the multipoints to show.

    The code I found in the contacts page:

    <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=false'></script>
    <script type='text/javascript' src='https://raw.github.com/marioestrada/jQuery-gMap/master/jquery.gmap.min.js'></script>
    
    <div id="google_map_233" class="google_map " style="height:400px"></div>
    <script type="text/javascript">
    $(document).ready(function($) {
    		$("#google_map_233").gMap({
    			latitude: 0,
    			longitude: 0,
    			maptype: 'TERRAIN', // 'HYBRID', 'SATELLITE', 'ROADMAP' or 'TERRAIN'
    			zoom: 8,
    			markers: [
    				{
    					latitude: 0,
    					longitude: 0,
    					address: "Fredericksburg, VA 22407:Woodbirdge, VA 22192",
    					popup: true,
    					html: "Fredericksburg Sakura"
    				}
    			],
    			controls: {
    				panControl: true,
    				zoomControl: true,
    				mapTypeControl: true,
    				scaleControl: true,
    				streetViewControl: false,
    				overviewMapControl: false
    			}
    		});
    });

    If there is, where is it located in the WP directory?

    I found the jQuery code to show multiple points.
    Here is the link to the jQuery code http://jsfiddle.net/nrabinowitz/2DBXY/

    I'm hoping if I just update the coding I see in the contacts viewsource, I can get the multipoints to show on the Google Maps.

    Thanks for the help!

  2. fosdesign
    Member
    Posted 1 year ago #

    Turns out WP incorporates the database and template to make the pages so there isn't any contact.php in the root directory :C

Topic Closed

This topic has been closed to new replies.

About this Topic