Detail Page Maps banner

This topic contains 8 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #376493

    Remy Klopper
    Expired Member
    Post count: 10

    Hello,

    I’d like to know how to get the banner from the detail page into a personal maps location. I’ve searched everywhere in the code but couldn’t find it, maybe this is the quicker way.

    I want it like Detail page -> tabs -> maps -> personal map

    But then in the header of the detail page.

    Thx in advance for the help greetings

    #376497

    Kor
    Moderator
    Post count: 16516

    Hi Remy,

    What do you mean by “Personal Maps”? is it from a 3rd party plugin? Please tell us a little bit more about it.

    Thanks!

    #376501

    Remy Klopper
    Expired Member
    Post count: 10

    The pin in the maps wich is bonded to the one wich is in details. Detail page -> tabs -> maps << like this but then in the header

    #376532

    Kor
    Moderator
    Post count: 16516

    Hi Remy,

    Please share WP temp admin access to your site so we can take a better look. You can post the details here using the private reply option below.

    #376537

    Remy Klopper
    Expired Member
    Post count: 10

    I can give you the details but that doesn’t really matter because what i’m asking isn’t in the wp dashboard panel but it needs to be programmed. I want it like this: https://www.popupup.com/popups/united-kingdom/greater-london/london/food-drink/division-194-king-co/?gde=2017-05-01

    #376538

    Remy Klopper
    Expired Member
    Post count: 10
    This reply has been marked as private.
    #376577

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That would require customisation which we do not provide. We can help you with what hooks you might need if you would like but you would have to write the code.

    Stiofan

    #376583

    Remy Klopper
    Expired Member
    Post count: 10

    Thats alright, i can write a little i can get the hang of it but currently all i do is research what hook leads to what and what it does.. lol so if you can please do so.

    Greetings Remy

    #376601

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    ok this took me 2 seconds, not perfect but a start

    
    
    add_action('sd_details_featured_area_text','_my_stuff');
    function _my_stuff(){
    	global $post;
    	echo "<div style='z-index: 10;width:100%;height:65vh;    margin-top: -32px;'>";
    	$map_args                    = array();
    	$map_args['map_canvas_name'] = 'detail_page_map_canvas_top';
    	$map_args['width']           = '100%';
    	$map_args['height']          = '65vh';
    	if ( $post->post_mapzoom ) {
    		$map_args['zoom'] = '' . $post->post_mapzoom . '';
    	}
    	$map_args['autozoom']                 = false;
    	$map_args['scrollwheel']              = ( get_option( 'geodir_add_listing_mouse_scroll' ) ) ? 0 : 1;
    	$map_args['child_collapse']           = '0';
    	$map_args['enable_cat_filters']       = false;
    	$map_args['enable_text_search']       = false;
    	$map_args['enable_post_type_filters'] = false;
    	$map_args['enable_location_filters']  = false;
    	$map_args['enable_jason_on_load']     = true;
    	$map_args['enable_map_direction']     = false;
    	$map_args['map_class_name']           = 'geodir-map-detail-page-top';
    	$map_args['maptype']                  = ( ! empty( $post->post_mapview ) ) ? $post->post_mapview : 'ROADMAP';
    	echo geodir_draw_map( $map_args );
    	echo "</div>";
    }

    Thanks,

    Stiofan

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount