Plugin Author
DWUser
(@dwusercom)
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
Hey Drew,
That didn’t work for me, unless I did something wrong.
Plugin Author
DWUser
(@dwusercom)
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
Plugin Author
DWUser
(@dwusercom)
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