New Landing How can we help? Atelier Google Map Language

Viewing 15 posts - 1 through 15 (of 17 total)
  • Posted in: Atelier
  • #282047
    yaniv691
    Member
    Post count: 24

    Hi,

    My site is in Hebrew. Is there a way I can show the Google Map on my contact page in Hebrew instead of English?

    Is there a way of showing a Hebrew map on Hebrew pages and an English map on English pages?

    Thanks,
    Yaniv

    #282211
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit the functions.php of child theme:-

    Find this code:-
    wp_register_script('sf-maps', '//maps.google.com/maps/api/js?sensor=false', 'jquery', NULL, TRUE);

    Change with:-
    wp_register_script('sf-maps', '//maps.google.com/maps/api/js?lang=iw', 'jquery', NULL, TRUE);

    Thanks
    Mohammad

    #282298
    yaniv691
    Member
    Post count: 24

    Hi Mohammad,

    The child theme doesn’t have the line you mentioned. How do I correctly add it in the child theme’s funcitons.php?

    Thanks

    #282351
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_enqueue_scripts() {
    
    			// Variables
    			global $sf_options, $post;
    		    $enable_rtl = $sf_options['enable_rtl'];
    		    $enable_smoothscroll = $sf_options['enable_smoothscroll'];
    		    $enable_min_scripts = $sf_options['enable_min_scripts'];
    			$post_type = get_query_var('post_type');
    			$product_zoom = $sf_options['enable_product_zoom'];
    			if ( isset($_GET['product_zoom']) ) {
    				$product_zoom = true;
    			}
    
    			// Page Content Meta
    			$page_has_map = false;
    			if ( $post ) {
    				$page_has_map      = sf_get_post_meta( $post->ID, 'sf_page_has_map', true );
    			}
    			if ( is_page_template('template-directory-submit.php') || get_post_type( $post->ID ) == 'directory' ) {
    				$page_has_map = true;	
    			}
    
    		    // Register Scripts
    		    wp_register_script('sf-bootstrap-js', SF_LOCAL_PATH . '/js/combine/bootstrap.min.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-isotope', SF_LOCAL_PATH . '/js/combine/jquery.isotope.min.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-imagesLoaded', SF_LOCAL_PATH . '/js/combine/imagesloaded.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-owlcarousel', SF_LOCAL_PATH . '/js/combine/owl.carousel.min.js', 'jquery', NULL, TRUE);
    			wp_register_script('sf-jquery-ui', SF_LOCAL_PATH . '/js/combine/jquery-ui-1.10.2.custom.min.js', 'jquery', NULL, TRUE);
    			wp_register_script('sf-ilightbox', SF_LOCAL_PATH . '/js/combine/ilightbox.min.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-maps', '//maps.google.com/maps/api/js?lang=iw', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-elevatezoom', SF_LOCAL_PATH . '/js/combine/jquery.elevateZoom.min.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-infinite-scroll',  SF_LOCAL_PATH . '/js/combine/jquery.infinitescroll.min.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-theme-scripts', SF_LOCAL_PATH . '/js/combine/theme-scripts.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-theme-scripts-min', SF_LOCAL_PATH . '/js/sf-scripts.min.js', 'jquery', NULL, TRUE);
    		    wp_register_script('jquery-cookie', SF_LOCAL_PATH . '/js/jquery.cookie.js', 'jquery', NULL, FALSE);
    		    wp_register_script('sf-functions', SF_LOCAL_PATH . '/js/functions.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-functions-min', SF_LOCAL_PATH . '/js/functions.min.js', 'jquery', NULL, TRUE);
    		    wp_register_script('sf-smoothscroll', SF_LOCAL_PATH . '/js/sscr.js', '', NULL, FALSE);
    
    			// jQuery
    		    wp_enqueue_script('jquery');
    			wp_enqueue_script('jquery-cookie');
    			
    		    if ( $enable_smoothscroll ) {
    		    	wp_enqueue_script('sf-smoothscroll');
    		    }
    
    		    if ( !is_admin() ) {
    
    		    	// Theme Scripts
    		    	if ($enable_min_scripts) {
    		    		wp_enqueue_script('sf-theme-scripts-min');
    		    		if ( $page_has_map ) {
    		    			wp_enqueue_script('sf-maps');
    		    		}
    		    		wp_enqueue_script('sf-functions-min');
    		    	} else {
    		    		wp_enqueue_script('sf-bootstrap-js');
    		    		wp_enqueue_script('sf-jquery-ui');
    
    		    		wp_enqueue_script('sf-owlcarousel');
    		    		wp_enqueue_script('sf-theme-scripts');
    		    		wp_enqueue_script('sf-ilightbox');
    
    		    		if ( $page_has_map ) {
    		    			wp_enqueue_script('sf-maps');
    		    		}
    
    		    		wp_enqueue_script('sf-isotope');
    		    		wp_enqueue_script('sf-imagesLoaded');
    		    		wp_enqueue_script('sf-infinite-scroll');
    
    		    		if ( $product_zoom ) {
    		    			wp_enqueue_script('sf-elevatezoom');
    		    		}
    
    		    		wp_enqueue_script('sf-functions');
    		    	}
    
    		    }
    		}
    

    Thanks
    Mohammad

    #282380
    yaniv691
    Member
    Post count: 24

    Thanks, but still now there’s another bug after updating the functions.php – the page is stuck on “loading”…

    #282523
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me FTP login detail to check and resolve it.
    Thanks
    Mohammad

    #282745
    yaniv691
    Member
    Post count: 24

    Sorry, but I can’t give you FTP access (client’s instruction). Please find the functions.php file used at this link:
    https://dl.dropboxusercontent.com/u/17133455/functions.php

    #282818
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please create zip of functions.php and attach here.
    Thanks
    Mohammad

    #282819
    yaniv691
    Member
    Post count: 24

    Attached

    Attachments:
    You must be logged in to view attached files.
    #282843
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Code is perfect. Please provide me wordpress login detail to check.
    Thanks
    Mohammad

    #283405
    yaniv691
    Member
    Post count: 24
    This reply has been marked as private.
    #283512
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I need FTP login detail because some errors in functions.php of child theme.
    Thanks
    Mohammad

    #283574
    yaniv691
    Member
    Post count: 24
    This reply has been marked as private.
    #283603
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue so please check it now.
    Thanks
    Mohammad

    #283604
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue so please check it now.
    Thanks
    Mohammad

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register