Giri
Forum Replies Created
-
AuthorPosts
-
Hi there,
check this file
/wp-content/themes/supreme-directory/languages/en_US.po
line 122
If the strings are coming from buddypress plugin, please follow this documentation. https://codex.buddypress.org/translations/
“You like this” text can be found here.
wp-content/plugins/geodir_review_rating_manager/geodir-reviewrating-languages/geodir_reviewratings-en_US.po
line 525
“%d people like this.” -> line 510
‘Your message was not sent. Please enter a subject line.’ -> https://github.com/buddypress/BuddyPress-build/blob/master/buddypress.pot#L5689
Change Avatar is not included in translation. we will fix that.
“Name” is coming from buddypress. So please check buddypress strings.
https://github.com/buddypress/BuddyPress-build/blob/master/buddypress.pot#L3259
Just FYI,
If you would like to move the link to the top, replace the string
geodir_after_description_on_listing_detail
with
geodir_before_description_on_listing_detail
Hi there, we have hook in profile page and paolo didn’t know that.
You can use this code and it would work
function geodirectory_detail_page_google_map_link() { global $post, $preview; if ( !$preview && !empty( $post->post_latitude ) && !empty( $post->post_longitude ) ) { $maps_url = add_query_arg( array( 'q' => get_the_title(), 'sll' => $post->post_latitude . ',' . $post->post_longitude, ), 'http://maps.google.com/' ); ?> <p><a href="<?php echo $maps_url; ?>" target="_blank"><?php echo __( 'Get Directions on Google Maps', 'geodirectory' ); ?></a></p> <?php } } add_action( 'geodir_after_description_on_listing_detail', 'geodirectory_detail_page_google_map_link');
Thanks
Try this code. I have tested it and it works. If you face any problem let me know.
function geodirectory_detail_page_google_map_link( $options, $canvas ) { global $post; if ( $canvas == 'detail_page_map_canvas' && !empty( $post->post_latitude ) && !empty( $post->post_longitude ) ) { $maps_url = add_query_arg( array( 'q' => get_the_title(), 'sll' => $post->post_latitude . ',' . $post->post_longitude, ), 'http://maps.google.com/' ); ?> <p><a href="<?php echo $maps_url; ?>" target="_blank"><?php echo __( 'Get Directions on Google Maps', 'geodirectory' ); ?></a></p> <?php } } add_action( 'geodir_map_after_render', 'geodirectory_detail_page_google_map_link', 10, 2 );
You should not display the same listing in multiple sub sites. Because that would generate duplicate content and it will affect your SEO.
AFAIK, Geodirectory doesn’t offer network sharing feature.
But I think you can achieve that with some 3rd party plugins.
For example, Refer these plugin
You are welcome. I’m gonna mark this thread as resolved. Feel free to reply to thread if you face any problem.
Thanks
If you want I can add a filter in our plugin according to your requirement.
Do you want to replace term icons with “Default listing image” only in Popular Cats widget ?
If you would like to keep the thumbnails use this code. Thats why i commented a line in my existing code. Somehow I already knew you might prefer that 🙂
.whoop-r-activity-body .gdbp-feature-image img { /*display: none;*/ display: block; }
Right now your thumbnail and text are mis aligned.
The above code makes the image display in a block. So the text goes below instead of right next to it.
Let me know if that helps
I have checked our source code. We don’t have any filter for modifying
$term_icon_url
However
$term_icon_url
uses
get_option('gd_term_icons')
behind the scenes. So you can modify the values returned by get_option function via pre_option filter.
https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_option_(option_name)
However it will affect all functions that uses
get_option('gd_term_icons')
Ernest, I do see recent activities showing up in your widgets. However i see thumbnails which ruins the layout. I have added some styles to hide them earlier.
But if you want those thumbnails you can keep them.
If you would like to hide thumbs just paste this code in Geodirectory -> Design -> Scripts -> Custom CSS
.whoop-r-activity-body .gdbp-feature-image img { display: none; /*display: block;*/ }
The problem is it looks like you have also updated whoop child theme or reinstalled it. You shouldn’t do that.
You are gonna put your custom codes in there and Thats the whole point of having child theme.
Oh.. I’m so sorry Ernest, Thats why i got confused. Thanks for the clarification. Yes he/she should have created a new thread instead of hijacking existing one.
@memorex13 Please create a new thread. So I can solve your issue properly.
Thanks
I didn’t install them. It was already there. You can use any theme you like. Just FYI, We also have Supreme theme and Directory starter which you can try.
-
AuthorPosts