Viewing 2 replies - 1 through 2 (of 2 total)
  • joneiseman

    (@joneiseman)

    I’m not sure what you mean when you say “make it bigger”. You can make the featured image clickable (it links to the single event page). You can do this with the following code snippet:

    add_filter('em_event_output_placeholder','my_em_styles_placeholders',1,3);
    function my_em_styles_placeholders($replace, $EM_Event, $result){
        if( preg_match( '/#_EVENTIMAGE.*/', $result ) ) {
            $url = get_post_meta($EM_Event->post_id, 'EVENTURL', true);
            if ( empty( $url ) ) {
                $url = esc_url($EM_Event->get_permalink());
            }
            $replace = '<a href="' . $url . '">' . $replace . '</a>';
        }
        return $replace;
    }

    Thread Starter damiankordian

    (@damiankordian)

    Dear joneiseman, thanks as ususal.

    I mean, is it possible to make pictures (featured or those in the body of event) able to click it and open this picture as bigger one? Example is here. I have a poster of an event, and I wish to open bigger picture to be able to read details, once I click it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to make picture clickable (to make it bigger)?’ is closed to new replies.