Giri
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Hi Apologies,
Yes that seems like it requires custom coding.
Sorry about that.
You are welcome.
Hi Joy,
You may have to use init action for that.
add_action('init', 'init_remove_gd_cliam_fields'); function init_remove_gd_cliam_fields() { if ( 'gd_hike' == get_post_type() ) { remove_action('geodir_before_main_form_fields' , 'geodir_add_claim_fields_before_main_form', 1); } }
.sd .sd-detail-info .sd-address { float: none !important; }
Is your widget supports php code? Because the html code I given in my last reply contains php code as well.
You are welcome.
Thanks Joy, Your code would remove only the featured images in place post type.
Not others.
If you guys wanna remove the banners in all post types then use this css.
body.single .featured-area { display: none! important; }
Thanks
You are welcome 🙂
Hi Not sure whether this is what you are looking for.
I added some custom styles in whoop options > quick css
Feel free to remove or improve the css according to your needs.
Thanks
Hi please provide the page url. So i can provide css.
Thanks
Hi,
Can you provide your site url and admin details? So i can provide custom css.
Thanks
This reply has been marked as private.You are welcome.
Hi Michael,
Try this code.
add_filter('sd_details_output_cat_links', 'custom_sd_details_output_cat_links'); function custom_sd_details_output_cat_links($cat_links) { global $preview, $post; if (!$preview) { $post_type = $post->post_type; $post_tax = $post_type . "category"; $post_cats = $post->{$post_tax}; } else { $post_type = $post->listing_type; $post_tax = $post_type . "category"; $post_cats = isset($post->post_category) ? $post->post_category[$post_tax] : $post->{$post_tax}; } if (is_array($post_cats)) { $post_cats = implode(',', $post_cats); } $cats_arr = array_filter(explode(",", $post_cats)); $cat_icons = geodir_get_term_icon(); $cat_links = '<div class="sd-detail-cat-links"><ul>'; foreach ($cats_arr as $cat) { $term_arr = get_term($cat, $post_tax); $term_icon = isset($cat_icons[$cat]) ? $cat_icons[$cat] : ''; $term_url = get_term_link(intval($cat), $post_tax); $cat_links .= '<li><a href="' . esc_url($term_url) . '" title="' . esc_attr($term_arr->name) . '"><img src="' . esc_url($term_icon) . '">'; $cat_links .= '<span class="cat-link">' . esc_attr($term_arr->name) . '</span>'; $cat_links .= '</a></li>'; } $cat_links .= '</ul></div> <!-- sd-detail-cat-links end --> </div> <!-- sd-detail-info end -->'; return $cat_links; }
-
AuthorPosts