Giri
Forum Replies Created
-
AuthorPosts
-
Hi there,
You can try this css
.geodir_category_list_view li.gridview_onehalf { margin: 0 20px 0 0; width: calc(50% - 12px); } .geodir_category_list_view li.gridview_onethird { margin: 0 15px 0 0; width: calc(33.3% - 12px); } .geodir_category_list_view li.gridview_onefourth { margin: 0 13px 0 0; width: calc(25% - 12px); } .geodir_category_list_view li.gridview_onefifth { margin: 0 12px 0 0; width: calc(20% - 12px); }
Thanks
If you are talking about this avatar, then you need to replace that image with your default avatar in supreme.
This is the path
/wp-content/themes/supreme-directory/images/gravatar2.png
Hi Joy,
When you connect to facebook it insert the facebook avatar image as avatar.
So you mean you would like to exclude the default facebook avatar?
Hi Joy, Could you explain what you are trying to achieve?
You wanna hide that “Business Owner” option only to certain categories?
If yes It doesn’t make any sense. Why not go with separate post types?
This reply has been marked as private.Apologies. let me have a look..
Thanks
This reply has been marked as private.Its not possible without custom code. sorry about that.
Hey Guys,
Discussed with stiofan about #5
He asked us to use /location page as GD home page since both layout are same.
Hi it should be
.sd .sd-detail-author { float: left; margin: 1px 50px 0 0; max-width: 10% !important; }
I guess it might because your post status might have changed to -1 if you import listing recently.
If thats the case you can either publish the listings one by one or use phpmyadmin and bulk update the post status to ‘publish’
Try editing the listing in the backend and publishing it again.
/wp-content/themes/geodirectory_whoop/reviews.php
Is there a way to upload multiple photos at once?
No. Not without custom code.
Also any chance the pop changes yesterday could’ve caused all listing pages to suddenly show a 404?
I hardly doubt it. Try switching your permalinks settings and switching back again.
You can also put the original code back. This is the original code.
if ($_FILES) { foreach ($_FILES as $file => $array) { if ($_FILES[$file]['error'] !== UPLOAD_ERR_OK) { $error = __('Image is required', GEODIRECTORY_FRAMEWORK); } //require the needed files require_once(ABSPATH . "wp-admin" . '/includes/image.php'); require_once(ABSPATH . "wp-admin" . '/includes/file.php'); require_once(ABSPATH . "wp-admin" . '/includes/media.php'); $post_data = array( 'post_title' => $caption, 'caption' => $caption, 'post_author' => $user_id ); $attachment_id = media_handle_upload( 'biz_image', $post_id, $post_data ); if ( is_wp_error( $attachment_id ) ) { $error = __('Image upload error.', GEODIRECTORY_FRAMEWORK); } else { $row_id = geodir_insert_user_image_data($attachment_id, $post_id, $user_id); $permalink = esc_url(add_query_arg(array("biz_photos" => $row_id), get_permalink($post_id))); wp_redirect( $permalink ); exit; //$success = __('Image upload successful', GEODIRECTORY_FRAMEWORK); } } } else { $error = __('Image is required', GEODIRECTORY_FRAMEWORK); }
Thanks
Hi Micahel,
Aplogogies. Actually that form was intended to upload only one photo. As you can see there in only one caption field.
The bug was html contains multiple=”false” tag. Some browser treats like multiple=”true” since the valid tag is multiple=”multiple”
I would advise you to remove that part in html.
File: /wp-content/themes/geodirectory_whoop/functions/photos.php
You can see this line around line 360<input type="file" name="biz_image" id="biz_image" class="geodir_textfield" style="padding-left: 0;" multiple="false"/>
Replace that with
<input type="file" name="biz_image" id="biz_image" class="geodir_textfield" style="padding-left: 0;"/>
Thanks
-
AuthorPosts