• Resolved pvwylick

    (@pvwylick)


    Hi,iCal is now working fine (since update to 5.3.6.4).

    Now I would like to change the URL link. It is now just displayed as text ‘iCal’ but I rather would use a small image to click on.

    Struggled through the code but could not find where to make changes (I’m not a experienced PHP-developer, just in the learning phase).
    Is it possible?

    http://wordpress.org/extend/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pvwylick

    (@pvwylick)

    Before anyone tries to give an answer: I think I’ve found the answer already.
    There is a code part in /classes/em_event.php where the format of the link is given. I will try to make changes in a copy in the theme subdirectory for EM.

    Thread Starter pvwylick

    (@pvwylick)

    Hi all,

    almost there but not quite satisfied with my solution.
    What did I do:
    changed some code in classes/em_event.php
    This is the code:

    case '#_EVENTICALLINK':
    	$replace = $this->get_ical_url();
    	if( $result == '#_EVENTICALLINK' ){
    		$replace = '<a href="'.esc_url($replace).'"><img src="http://www.cabrioxperience.nl/wp-content/uploads/2013/03/ical.png"></a>';
    }

    The result is a link from the given image, just what I intended.
    BUT: in case of an update this change will be lost. Tried to put this code in the theme directory ….plugins//event_manager/classes
    but that does not work.
    Any suggestions?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Instead you should use #_EVENTICALURL along with html in your event formats to create a link with an image there.

    Thread Starter pvwylick

    (@pvwylick)

    Thx Marcus!
    This is far much better indeed. Did not know this placeholder.
    The EM is very flexible, this proves it.
    I am very pleased with it and will encourage others to use it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘iCal: change link to URL from text to image’ is closed to new replies.