• Resolved zangpartij

    (@zangpartij)


    I am using quick event manager and i have some trouble placing the featured image in an event. As an explanation i made a movie that can be found
    at zangpartij.nl, mainmenu on the right, choose Quick.

    But if that does not work properly, here a written description:
    I have created an event with an event-image and an image in the description.
    1) When i have no featured image, than these two image are visualised correctly in the detail page and in the list.

    2)However, when i add a featured image:
    2.1)the featured image is placed above the event in the detaill page and it replaces the event-image. Further more the scaling is not correct.
    2.2)the featured image is placed in the list but the scaling is incorrect.

    3) when i delete the featured image, the visualisation returns to normal, as described under 1)

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is related to the way your theme handles featured images, simplest solution is not to use feature image on the events but just the event image, is there any reason whythat is not appropriate for you?

    • This reply was modified 9 months, 2 weeks ago by Alan Fuller.
    Thread Starter zangpartij

    (@zangpartij)

    Thank you for you quick response, but i solved it:

    i changed some code in “qem-event-build-functions.php” (around line 60) and now its ok by me.

    /* zang20250526 !get_post_meta( $post->ID, ‘event_image’, true ) && added to avoid showing he featured picture on the right */

        if ( !get_post_meta( $post->ID, ‘event_image’, true ) && has_post_thumbnail( $post->ID ) && $display[‘usefeatured’] ) {

        /* zang20250526 large naar ‘medium’*/

            $image = get_the_post_thumbnail( null, ‘medium’ ); /* small is not possible??*/

    greetz Harrie.

    OK obvioulsy changing the code in a plugin is a bad idea as any new release you will have to patch.

    For the image on the side, I have just applied a small CSS fix that resolves the image proportions and that is in release 9.15 you may want to see if that works for you.

    The styling and the applications of a featured image above you event post is down to your theme, as by default it uses teh single post template, as you are using TwentyTwentyFive you can simply go tosite editor > templates > Add and select a new template for Events and remove the images or replace it with what ever you like.

    Thread Starter zangpartij

    (@zangpartij)

    Again, thank you for your quick response. The scaling of the picture is now looking good!
    I’ll try the solution you suggested, thank you!
    greetz Harrie.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Featured picture is not shown correctly’ is closed to new replies.