Permalinks and Image Sizes

This topic contains 9 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #493804

    Eileen Quick
    Full Member
    Post count: 165

    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

    #493828

    Kor
    Moderator
    Post count: 16516

    Hi 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

    #494145

    Eileen Quick
    Full Member
    Post count: 165

    Hi 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

    #494548

    Kor
    Moderator
    Post count: 16516

    Hi Eileen Quick,

    Thanks for your reply. Kindly share your Website WP admin access here in private reply so that we could check on it?

    #494722

    Eileen Quick
    Full Member
    Post count: 165
    This reply has been marked as private.
    #494728

    Alex Rollin
    Moderator
    Post count: 27815

    GD 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.

    #494743

    Eileen Quick
    Full Member
    Post count: 165

    ok 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

    #494794

    Alex Rollin
    Moderator
    Post count: 27815

    Try 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

    #501192

    Eileen Quick
    Full Member
    Post count: 165

    Hi 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 );

    #501285

    Alex Rollin
    Moderator
    Post count: 27815

    You can try using the code snippets plugin instead. The snippet has been tested and works.

    https://wpgeodirectory.com/docs-v2/faq/customizing/#custom-code

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket