• Resolved TheSalsaKid

    (@thesalsakid)


    Dear support,
    Is it possible with CSS to make the featured image in carousel view clickable?
    Now the event only opens if you click on the event title.
    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter TheSalsaKid

    (@thesalsakid)

    Additionally, I think it can be changed in render.php.

    I think these 2 need to be combined, but I don’t know how:
    1) echo $event->data->thumbnails[‘meccarouselthumb’];
    2) href=”<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date[‘start’][‘date’]); ?>”>

    Please advise. Thanks.

    frostengine

    (@frostengine)

    Plugin Contributor webnus

    (@webnus)

    Hi All,

    @frostengine thanks for sharing the topic.

    @thesalsakid, yes, changing the render.php can meet your needs,

    Please head over to this article: https://webnus.net/dox/modern-events-calendar/overriding-mec-shortcodes-skin/

    Also, this topic is an example of it: https://ww.wp.xz.cn/support/topic/tiles-view-clickable-image/ (but it is about tile view, you can do this structure for your desired shortcode)

    Best Regards

    Thread Starter TheSalsaKid

    (@thesalsakid)

    @frostengine, @webnus Thanks man. I’ll have a look at it.

    Thread Starter TheSalsaKid

    (@thesalsakid)

    @frostengine, @webnus Sorry guys, but I’m not a developer.

    I see the differences in code for the Tiles render.php, but still don’t get the concept of classes, and how to incorporate that for Carousel render.php.

    I think I only need to combine these 2 lines in one class, extended with Hoovering?
    1) echo $event->data->thumbnails[‘meccarouselthumb’];
    2) href=”<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date[‘start’][‘date’]); ?>”

    Help is much appreciated.

    Thread Starter TheSalsaKid

    (@thesalsakid)

    I got it working.
    But now it opens the event page instead of the popup.
    Any suggestions where I can find this code?
    Thanks

    Thread Starter TheSalsaKid

    (@thesalsakid)

    I found it, I added the <h4 class=”mec-event-carousel-title”>.

    Plugin Contributor webnus

    (@webnus)

    Hi @thesalsakid

    Good job,

    Also, I will forward your topic to our developer team and they’ll surely receive it. If it is possible they will add this feature in the upcoming updates of the Plugin.

    Best Regards

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

The topic ‘Event Featured Image clickable’ is closed to new replies.