WordPress.org

Ready to get started?Download WordPress

Forums

EasyRotator for WordPress - Slider Plugin
[resolved] Slide Title (7 posts)

  1. one9ooh6
    Member
    Posted 1 year ago #

    Is there a way to make the title on the slide a link? Only the image is a link.

    http://wordpress.org/extend/plugins/easyrotator-for-wordpress/

  2. DWUser.com
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You can automatically link the titles by editing the wp-content/plugins/easyrotator-for-wordpress/engine/main.php plugin file. On or around line 1870, you'll see:

    $codeOut .= "\n " . '<span class="title">' . $title . '</span>';

    Update this to be:

    $codeOut .= "\n " . '<span class="title">< a href="' . htmlspecialchars($link) . '">' . $title . '</a></span>';

    NOTE: I added a space between < and a (it's currently < a) to prevent the forum from breaking the formatting. You should remove that space in the real code.

    Sincerely,
    Drew O'Neill

  3. one9ooh6
    Member
    Posted 1 year ago #

    Hey Drew,

    That didn't work for me, unless I did something wrong.

  4. DWUser.com
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Can you please post a gist with the exact code that you changed? Please also send the URL of your page that has a rotator that's not auto-linking.

    Sincerely,
    Drew O'Neill

  5. one9ooh6
    Member
    Posted 1 year ago #

    Here's the <a></a>

  6. one9ooh6
    Member
    Posted 1 year ago #

    Here's the link .

    Here's the screenshot

  7. DWUser.com
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Sorry – the code I sent was for dynamically-generated slides; to add links to manually-added slides, just update the slide titles in the editor to include link code. For example:

    Miss America is coming to Vicksburg!

    Becomes:

    < a href="http://capcenter.net/a-day-with-miss-america/">Miss America is coming to Vicksburg!< /a>

    (Spaces added to a tags to prevent parsing.)

    Sincerely,
    Drew O'Neill

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.