Naveen Giri
Forum Replies Created
-
AuthorPosts
-
Hi Daniel,
Just to update you. It has been fixed and it will be up in the upcoming version of Geodirectory.
Thanks for your patience.Regards
NaveenApril 16, 2020 at 6:30 am in reply to: Want use GD Lightbox for single detail place content images #540538Hi Adrien,
I saw you have already wrapped a few images in the anchor tag. you can remove them from anchor tags.
Please use the following PHP code snippet to make every image in place content.
add_action( 'wp_head', function () { ?> <script> // script to wrap every img in litty popup anchor. jQuery('.entry-content .geodir-field-post_content img').each(function(){ var href = jQuery(this).attr('src'); jQuery(this).wrap( "<a href='"+ href +"'></div>" ); }); </script> <?php } );
April 16, 2020 at 4:14 am in reply to: Want use GD Lightbox for single detail place content images #540527Hi Adrien,
Please include data-lity attribute in link of that image.
It will open up the lightbox.Regards
NaveenHi Nick,
can you please share the site details in a private reply. where it’s not working.
I will reconfirm the cause and add a permanent fix for it.Thanks
Hi Vivek,
can you please share the staging site details?
Thanks
Hi Nick,
the target website has a lower version of Font awesome that creating this issue.
Please see if you have any theme updates there.or try this code on target website.
.gd-rating .gd-rating-wrap { display: block; } .gd-rating-wrap .fa-fw { font-family: FontAwesome !important; font-size: 14px; color: #fff; } .gd-rating-wrap .gd-rating-foreground .fa-fw { color: #ad9a20; }
Thanks
Hi nickstroeger,
It’s a style conflict with that site. it is working fine on other sites I have tested with.
I am checking what causing the style issue. I will get back to you.Thanks
Yup, that’s right.
Please copy the latest code, I have added one more check for detail page.Hello,
You can use this filter.
it will add that string before post content on gd single page.
not need to worry about adding it for every place from the backend.add_filter( 'the_content', function( $content ) { $post_type = geodir_get_current_posttype(); if ( ! geodir_is_gd_post_type( $post_type ) && !geodir_is_page('detail') ) return $content; return '<!--DoThis-->'.$content; });
Thanks
Hi Rich,
code for this has been fixed and it will be in the upcoming version.
meanwhile, if you want you can use this code snippet using plugin.
https://wordpress.org/plugins/code-snippets/add_filter('wpseo_frontend_page_type_simple_page_id', 'wpseo_frontend_page_type_simple_page_id_custom_callback'); function wpseo_frontend_page_type_simple_page_id_custom_callback( $gd_page_id ){ if ( geodir_is_page( 'post_type' ) || geodir_is_page( 'archive' ) ) { $post_type = geodir_get_current_posttype(); $gd_page_id = geodir_get_page_id( 'archive', $post_type ); } return $gd_page_id; }
Regards
NaveenHi Victor,
can you please send site details in a private reply? so we can check it.
Regards
NaveenRemoved them using the empty trash button.
Please have a look.Hi Evan,
Thanks for reporting it.
I have sent a pull request for it. It will be up in the upcoming version of the duplicate alert addon.Regards
NaveenHi Daniel,
Please use the following snippet to remove the popup from the file upload field.
add_action( 'wp_head', function () { ?> <script> /* write your JavaScript code here */ jQuery(document).ready(function(){ jQuery('.geodir-custom-field-file a').removeAttr('data-lity'); }); </script> <?php } );
Regards
NaveenThis reply has been marked as private. -
AuthorPosts