Naveen Giri

Forum Replies Created

Viewing 15 posts - 151 through 165 (of 1,165 total)
  • Author
    Posts
  • in reply to: Snippet for US state abbreviations & Washington, DC #536841

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Foster,

    could you please share the site details in the private reply.

    Thanks


    Naveen Giri
    Moderator
    Post count: 1559

    Hi Simon,

    Sorry, I haven’t read all your replies above.

    You can try the below code instead. this is a custom shortcode.
    you can use it with container like

    <div class="int-div-prac" [gd-background-image]>
    
    
    
    	
    function custom_image_url_callback( $atts ) {
    	global $gd_post;
    	$featured_img = get_the_post_thumbnail_url($gd_post->ID, 'full');
    	if( empty( $featured_img )){
    		return false;
    	}
    	ob_start();
    	?>
    	style =" padding:10px 5px;
    	background-image: url('<?php echo $featured_img; ?>');
    	background-repeat: none;
    	background-size: cover;"
    	<?php
    	$output = ob_get_contents();
    	ob_end_clean();
    	return $output;
    }
    add_shortcode( 'gd-background-image', 'custom_image_url_callback' );

    You can look for GD experts here for any further customization.
    https://geodirectoryexperts.com/

    Thanks

    in reply to: Edit Location Pages #536685

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Joy,

    I will check and get back to you.

    Thanks

    in reply to: Undefined index: geo #536485

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Alain,

    The code has been Fixed and pushed in the addon branch. It will up in the upcoming version.

    Thanks

    in reply to: Listing Widget – Exclude Current #536480

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Joy,

    Please try this snippet.

    
    add_filter('geodir_widget_listings_query_args', 'custom_geodir_widget_listings_query_args_callback', 10, 2);
    function custom_geodir_widget_listings_query_args_callback( $query_args, $instance ){
        global $gd_post;
        $query_args['post__not_in'] = $gd_post->ID;
    	return $query_args;
    }

    meanwhile, I will make sure to push the code on the plugin branch. It seems a meaningful point to me.

    Regards
    Naveen

    in reply to: Hide a specific category in Drop down for auto submit. #536465

    Naveen Giri
    Moderator
    Post count: 1559

    Thanks for confirmation Surender, Stay safe from Covid-19.

    in reply to: Listing Widget – Exclude Current #536439

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Joy,

    can you please share the post URL, where you had noticed the issue.

    Thanks

    in reply to: Tabs messed up on recent upgrade #536391

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Ron,

    I have noticed the same issue on my local too. While we add a permanent fix for it.
    You can try this css snippet instead.

    
    
    
    .geodir-tabs dl.geodir-tab-head{display: block!important;}
    

    Thanks

    in reply to: Detail Tabs Mobile Issue #536389

    Naveen Giri
    Moderator
    Post count: 1559

    Thanks for confirming Joy, I will reply you on other ticket Ron.

    in reply to: Remove Social Importer from specific CPT? #536384

    Naveen Giri
    Moderator
    Post count: 1559

    You can try this and alter this array values.

     $post_types = array( 'gd_events', 'gd_places' );
    
    
    
    add_action( 'wp_footer', 'custom_callback_gd_add_listing_top_code',  1 );
    function custom_callback_gd_add_listing_top_code(){
        $post_types = array( 'gd_events', 'gd_places' );
    	if( !empty( $_GET['listing_type'] ) && in_array( $_GET['listing_type'], $post_types ) ){ ?>
    		<script type='text/javascript'>
    			jQuery(document).ready(function(){
    				jQuery('#gd-social-importer').remove();
    			});
    		</script>
    	<?php 
    	}
    }

    Thanks

    in reply to: No records found #536383

    Naveen Giri
    Moderator
    Post count: 1559

    Please clear the cache on-site and server and check again.
    It seems like a cache issue.

    in reply to: Remove Social Importer from specific CPT? #536305

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Doug,

    Please use the following snippet. I have removed the social importer field option add a new event page.

    You can replace gd_event from below code with your own cpt name.

    
    add_action( 'wp_footer', 'custom_callback_gd_add_listing_top_code',  1 );
    function custom_callback_gd_add_listing_top_code(){
    	if( !empty( $_GET['listing_type'] ) && 'gd_event' === $_GET['listing_type'] ){ ?>
    		<script type='text/javascript'>
    			jQuery(document).ready(function(){
    				jQuery('#gd-social-importer').remove();
    			});
    		</script>
    	<?php 
    	}
    }
    

    Thanks

    in reply to: Detail Tabs Mobile Issue #536301

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Joy,

    Please have a look, seems external js issue. I have added a small css patch.

    Thanks

    in reply to: Category list not showing #536290

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Ronald,

    The category issue on the frontend cause by Snax plugin.

    not sure if you need that plugin. Please report this issue to the plugin author.

    Thanks

    in reply to: Edit Location Pages #536065

    Naveen Giri
    Moderator
    Post count: 1559

    I have added an id to the parent container of the header section in elementor but it seems that has been overridden recently.

    I have added that id back and confirmed it working for all location.

    I see two location does not have a image.
    https://www.luckywelivehere.com/wp-admin/admin.php?page=gd-settings&tab=locations&section=cities

    Please make sure to refresh your page before making any changes in elementor layout of that custom location page.
    Thanks

Viewing 15 posts - 151 through 165 (of 1,165 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount