Results 1 to 4 of 4

Thread: Only load Gmaps when Category is Real Estate and Sub Category is Homes for Sale

  1. #1
    Thread Starter
    Veteran roald's Avatar
    Join Date
    Nov 2010
    Location
    Canada
    Posts
    322
    Thanks
    25
    Thanked 48 Times in 45 Posts

    Only load Gmaps when Category is Real Estate and Sub Category is Homes for Sale

    Hi,

    I am looking to modify Theme-Enqueue.php (line 54 to 59) so that Gmap only displays when category Real Estate and it's sub category Homes for Sale is selected.

    Could someone of you great programmers suggest a code for this?

    // only load colorbox & gmaps when we need it
    if ( is_singular(APP_POST_TYPE) ) {
    $cp_gmaps_lang = esc_attr( get_option('cp_gmaps_lang') );
    $cp_gmaps_region = esc_attr( get_option('cp_gmaps_region') );
    wp_enqueue_script('colorbox', get_bloginfo('template_directory').'/includes/js/colorbox/jquery.colorbox-min.js', array('jquery'), '1.3.15');
    wp_enqueue_script('google-maps', "http://maps.google.com/maps/api/js?sensor=false&language=$cp_gmaps_lang&re gion=$cp_gmaps_region", array('jquery'), '3.0');

    Thank you, Cheers Roald

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Veteran roald's Avatar
    Join Date
    Nov 2010
    Location
    Canada
    Posts
    322
    Thanks
    25
    Thanked 48 Times in 45 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Veteran roald's Avatar
    Join Date
    Nov 2010
    Location
    Canada
    Posts
    322
    Thanks
    25
    Thanked 48 Times in 45 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. almost finished real estate
    By hugo in forum Showcase & Feedback
    Replies: 1
    Last Post: November 3rd, 2011, 09:51 PM
  2. Real Estate 2.9.3
    By werlisa in forum Showcase & Feedback
    Replies: 9
    Last Post: November 24th, 2010, 08:42 PM
  3. Classipress Real Estate
    By Pisos-Alquiler.com in forum Showcase & Feedback
    Replies: 16
    Last Post: July 26th, 2010, 02:24 PM