Issue after import. GeoLocation just results in a page not found.

This topic contains 16 replies, has 4 voices, and was last updated by  Naveen Giri 4 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #521030

    Emily Moose
    Full Member
    Post count: 22
    This reply has been marked as private.
    #521333

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Emily,

    Please add following code as snippet. and check the video.

    
    
    
    add_action('wp_head', 'wp_restrict_embed_oembed_html');
    function wp_restrict_embed_oembed_html(){
    	remove_filter('embed_oembed_html', 'geodir_responsive_embeds', 10, 3);
    	add_filter('embed_oembed_html', 'geodir_custom_responsive_embeds', 10, 3);
    }
    function geodir_custom_responsive_embeds($html, $url, $attr) {
    	if ( geodir_is_geodir_page() ) {
    		return $html !== '' ? '<div class="geodir-embed-container">' . $html . '</div>' : '';
    	}
    	return $html;
    }
    

    Thanks

Viewing 2 posts - 16 through 17 (of 17 total)

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

Open Support Ticket