Removing hyperlinks from speakers widget

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Sun Jul 21, 2013 11:28 am
Hey there,

Having information on the speakers is just overkill for a single page site design, how would I go about removing the hyperlinks from the speakers?
User avatar
Fresh Boarder

GK User
Sun Jul 21, 2013 11:45 am
It require a little bit of php editing ;)

Please edit file:
/wp-content/themes/Fest/gavern/widget.speakers.php
find each appearance of <a element. They will look this way:
Code: Select all
<a href="'.$speakers[2]['url'].'">

or
Code: Select all
<a href="'.$speakers[2]['url'].'" title="'.$speakers[2]['title'].'">'.$speakers[2]['title'].'</a>

ot any other looking this way anchor element.

What You need to do with them, is remove the href part so they look this way:
Code: Select all
<a>
<a title="'.$speakers[2]['title'].'">'.$speakers[2]['title'].'</a>


After saving You need to login into wp-admin, go to widget section and save Speakers widget settings - WP caches widgets wnd will not see your changes untill You save the widget.
User avatar
Moderator


cron