WordPress.org

Ready to get started?Download WordPress

Forums

Events
When using a 'Link' as the 'Title' it would be nice to add.... (1 post)

  1. Texiwill
    Member
    Posted 4 years ago #

    Hello,

    I just modified wp-events-functions.php to add the following to all instances of when an event title is a link to add the 'title' anchor element to allow a mouse over to show the details of the event and hopefully improve SEO.

    Diff follows:

    179c179
    < if($event->title_link == 'Y') { $event->title = 'link.'" target="'.$events_config['linktarget'].'">'.$event->title.''; }
    ---
    > if($event->title_link == 'Y') { $event->title = 'link.'" target="'.$events_config['linktarget'].'" title="'.$event->pre_message.'">'.$event->title.''; }
    183c183
    < if(strlen($event->link) > 0) { $template = str_replace('%link%', 'link.'" target="'.$events_config['linktarget'].'">'.$events_language['language_sidelink'].'', $template); }
    ---
    > if(strlen($event->link) > 0) { $template = str_replace('%link%', 'link.'" target="'.$events_config['linktarget'].'" title="'.$event->pre_message.'">'.$events_language['language_sidelink'].'', $template); }
    354c354
    < if($title_link == 'Y') { $title = ''.$title.''; }
    ---
    > if($title_link == 'Y') { $title = ''.$title.''; }
    520c520
    < ?>
    \ No newline at end of file
    ---
    > ?>

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags