Permalinks and Image Sizes
This topic contains 9 replies, has 3 voices, and was last updated by Alex Rollin 5 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
June 19, 2019 at 12:34 pm #493804
Just upgraded and only two things to sort now.
Once I carried out the upgrade I get this is the setting area
GeoDirectory permalink error the following rule appears twice: ^therapies/([^/]*)/?$I checked the permalinks in the old site against new and only difference I can see is that now I have two lots of settings for permalinks one under the heading of wp and the other gd.
Also
Images in mini listings are huge and again no difference in media sizes in wp settings so is there another setting to control the size of the images here. They are loaded up at one size then increased to another which makes them large and blurred.
Also
Is there an area to increase the size of the main map on a page.
Thank you.
All looking great so far.
Kind regards
June 19, 2019 at 1:57 pm #493828Hi Eileen,
Thanks for your post. Before we investigate your Website backend. Kindly check the sections of the documentation and see if it helps.
1. For permalink issues, check out this link https://wpgeodirectory.com/docs-v2/geodirectory/settings/permalinks/
2. As for image sizes, refer this link https://wpgeodirectory.com/docs-v2/integrations/images/#faq
June 21, 2019 at 10:17 am #494145Hi Kor
Thank you for your reply. Unfortunately the link Number 1. has not helped as my settings are the same as the guide!
In respect of number 2. In V1 there was an option to restrict image upload size to 300kb and the wp installation had exactly the same media sizes as V2, V2 does not restrict image upload and it changes the sizes for the small listing page. ie it increases the size. So if a customer uploads a 300 x 300 image then it is shown as 1400 x 788.
As wordpress sizes in both installations (dev and live) are set the same then, despite what it says in your guidelines, the mini listing page MUST be defining the size of the image shown in the slider. How else would it show/call the image and as the settings are exact same size as the V1 version then I would suggest that as the image in the mini listing appear massive, that it is pulling in the large image size of wp.
If that is the case then there must be a way of defining the size of the image shown in the slider of the mini listing.
Hope that makes sense and we can find a resolution.
Thank you.
Kind regards
June 24, 2019 at 7:06 pm #494548Hi Eileen Quick,
Thanks for your reply. Kindly share your Website WP admin access here in private reply so that we could check on it?
June 25, 2019 at 12:42 pm #494722This reply has been marked as private.June 25, 2019 at 1:01 pm #494728GD has a setting to restrict file size in the general options
GD – Settings – General – Show advanced – Max upload file size(in mb)Try setting your max size there.
Your archive item is the default. Not sure if we can help you with what you are after, but, if you are looking to change the archive item image to use a different format from the media library you can look in the archive item for this shortcode:
[gd_post_images type='image' ajax_load='true' link_to='post' show_logo='true']
Now open a shortcode builder on the site and create a new shortcode with the size you want.
June 25, 2019 at 1:44 pm #494743ok great I found that setting – much appreciated.
Just the other two things to sort out ie the permalinks and stripe giving an invoice for a free listing.
Many thanks.
Kind regards
June 25, 2019 at 4:14 pm #494794Try adding category and location to your permalinks. The warning is to advise you to add more complexity so you don’t get duplicates which will result in 404s.
For cancelling the invoice email on free listings see: https://wpgeodirectory.com/support/topic/invoices-of-0-00-euros-being-sent-for-free-listings/#post-486780
August 4, 2019 at 10:48 am #501192Hi there I tried the link above to change invoicing for the free listings but it stopped the site from working.
I added the text to the child theme functions.php – should it have been elsewhere?
/**
* Prevent sending invoice email notifications to user for free invoices.
*/
function gd_snippet_prevent_invoice_email_for_free_listing( $recipient, $email_type, $invoice_id, $invoice ) {
if ( class_exists( ‘GeoDir_Pricing_Post_Package’ ) && ! empty( $invoice ) && $invoice->is_free() ) {
$post_packages = GeoDir_Pricing_Post_Package::get_items( array( ‘invoice_id’ => $invoice_id ) );if ( ! empty( $post_packages ) ) {
$recipient = NULL; // No recipient.
}
}
return $recipient;
}
add_filter( ‘wpinv_email_recipient’, ‘gd_snippet_prevent_invoice_email_for_free_listing’, 100, 4 );August 5, 2019 at 7:49 am #501285You can try using the code snippets plugin instead. The snippet has been tested and works.
https://wpgeodirectory.com/docs-v2/faq/customizing/#custom-code
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket