Giri
Forum Replies Created
-
AuthorPosts
-
Hi there,
I have applied the following code using the credentials you provided.
#content-container #content.gdbp-main-content { top: 0; width: 100%; -webkit-box-shadow:none; -moz-box-shadow:none; -ms-box-shadow:none; box-shadow:none; } #right-sidebar .widget .intern-padding ul li.geodir-gridview { padding:0; }
Please test it
Latoya, Please try this code in GD custom css.
#content-container #content.gdbp-main-content { top: 0; }
This reply has been marked as private.Hello Brian, I have fixed this problem.
You can find the pull request here.
https://github.com/GeoDirectory/directory-starter/pull/14/files
Please post your ftp details. I’ll apply the fix.
Thanks
@Elad can you try this code?
Please use code snippets plugin to apply the code
https://wordpress.org/plugins/code-snippets/
remove_action('dt_before_site_logo', 'dt_add_mobile_gd_account_menu'); add_action('dt_before_site_logo', 'custom_dt_add_mobile_gd_account_menu'); function custom_dt_add_mobile_gd_account_menu() { ?> <div class="dt-mobile-account-wrap"><a href="#gd-account-nav"><i class="fa fa-user"></i></a></div> <div id="gd-account-nav" > <div > <?php if (class_exists('geodir_loginwidget')) { the_widget('geodir_loginwidget', 'mobile-login-widget', array('before_title'=>'<strong class="mobile-login-widget-title">','after_title'=>'</strong>')); } do_action('login_form'); ?> </div> </div> <?php }
I’m not sure why, but that part is being overridden by kleo theme. We collpase ratings by default.
Try applying this code
#reviews-wrap #comments .comment-content>div:first-child>div.comment_more_ratings { display: none; }
@fws2016, I have tried to access wp admin. But i see error message
I think your mysql server is down. You need to restart mysql error to fix that error. Could be your server memory issue. Please use at least 1 GB RAM when running WordPress. Please fix that and let me know.
So I can apply the fix.
Thanks
Hello Frank, Multiratings are collapsed by default. You have applied Guust code. Thats why its showing now. Remove the code added by Guust. Then everything will be fine.
I hope thats what you are after. Let me know if i’m missing something
Thanks
Hello Ernest, This plugin needs some code refactoring. So you may have to wait till monday. Sorry about that.
Thanks
Thanks milettic. I’ll ask Guust to revert the doc.
You can use whichever works best for you now
Just you direct youtube url
This thread is in job section. can’t you let some good developer do your work?
This code fixes preview page video display bug
add_filter('geodir_detail_page_tab_is_display', 'custom_gd_hide_video_tab', 10, 2); function custom_gd_hide_video_tab($value, $tab) { if ($tab == 'post_video') { $value = false; } return $value; } add_action('geodir_detail_sidebar_inside', 'custom_gd_show_video_in_sidebar', 1); function custom_gd_show_video_in_sidebar() { global $post; $video = ''; if (geodir_is_page('preview')) { $video = isset($post->geodir_video) ? $post->geodir_video : ''; } elseif (geodir_is_page('detail')) { $video = geodir_get_video($post->ID); } if ($video != '') { echo '<div class="geodir-video-wrapper">'; echo wp_oembed_get(stripslashes($video)); echo '</div>'; } } add_action('wp_head', 'custom_video_responsive_css'); function custom_video_responsive_css() { if (geodir_is_page('preview') || geodir_is_page('detail')) { ?> <style type="text/css"> .geodir-video-wrapper { margin-top: 20px; position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; margin-bottom: 10px; } .geodir-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style> <?php } }
Ok, You can the_content filter in sidebar. But i’m not sure whether it would cause some other issue.
Try with this code
add_filter('geodir_detail_page_tab_is_display', 'custom_gd_hide_video_tab', 10, 2); function custom_gd_hide_video_tab($value, $tab) { if ($tab == 'post_video') { $value = false; } return $value; } add_action('geodir_detail_sidebar_inside', 'custom_gd_show_video_in_sidebar', 1); function custom_gd_show_video_in_sidebar() { global $post; $video = ''; if (geodir_is_page('preview')) { $video = isset($post->geodir_video) ? $post->geodir_video : ''; } elseif (geodir_is_page('detail')) { $video = geodir_get_video($post->ID); } if ($video != '') { echo '<div class="geodir-video-wrapper">'; echo apply_filters('the_content', stripslashes($video)); echo '</div>'; } } add_action('wp_head', 'custom_video_responsive_css'); function custom_video_responsive_css() { if (geodir_is_page('preview') || geodir_is_page('detail')) { ?> <style type="text/css"> .geodir-video-wrapper { margin-top: 20px; position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; margin-bottom: 10px; } .geodir-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style> <?php } }
-
AuthorPosts