Okay
  Public Ticket #200904
Contact Map Locations
Closed

Comments

  • Carrie started the conversation

    I seem to have hit the end of the allowed locations for the map. Is there any workaround this to allow for more than 10 locations?

    I took a peak at the code but I'm not sure what it would be exactly.

    Thank you

  •  8,839
    Tahir replied

    Hey Carrie!

    You will have to add new options in the "salient\nectar\options\options-init.php" file and add in new locations. Chang 10 to 11,12 , 13 etc.

    array(
                    'id' => 'map-point-10',
                    'type' => 'checkbox_hide_below',
                    'title' => __('Location #10', NECTAR_THEME_NAME), 
                    'sub_desc' => __('Toggle location #10', NECTAR_THEME_NAME),
                    'desc' => '',
                    'next_to_hide' => '3',
                    'switch' => true,
                    'std' => '0' 
                ),
           		 array(
                    'id' => 'latitude10',
                    'type' => 'text',
                    'title' => __('Latitude', NECTAR_THEME_NAME), 
                    'sub_desc' => __('Please enter the latitude for your tenth location.', NECTAR_THEME_NAME),
                    'desc' => '',
                    'validate' => 'numeric'
                ),
                 array(
                    'id' => 'longitude10',
                    'type' => 'text',
                    'title' => __('Longitude', NECTAR_THEME_NAME), 
                    'sub_desc' => __('Please enter the longitude for your tenth location.', NECTAR_THEME_NAME),
                    'desc' => '',
                    'validate' => 'numeric'
                ),
                array(
                    'id' => 'map-info10',
                    'type' => 'textarea',
                    'title' => __('Map Infowindow Text', NECTAR_THEME_NAME), 
                    'sub_desc' => __('If you would like to display any text in an info window for your tenth location, please enter it here.', NECTAR_THEME_NAME),
                    'desc' => ''
                ),
                
    

    All the Best,

    -T


    ThemeNectar Support Team 

  • Carrie replied

    Thanks for such a fast response!

    Building on this- do I then edit the info directly in \options-init.php? When I entered in for the next location and went back into the admin contact section it still caps off at 10. So Just want to be sure I do it right.

    Thanks!

  •  8,839
    Tahir replied

    Hey Carrie!

    You will have to change the values in here as well "salient\nectar\options\fields\add_remove\field_add_remove.js"

    Cheers


    ThemeNectar Support Team