Hi,
I'm using a plugin in Wordpress to display events on my page, but instead of making it simple, they are requiring me to use php to display the title of the pages as I want to.
The rest of my pages display with a little icon and then the title of the page (see here: http://dev.rjthompsonmusic.com/about). This is displayed in my themes html as follows:
<i class="icon-book"></i><?php echo wpb_page_title(); ?>
But the Events Calendar plugin uses the following php to display the title on my Tour / Single Events pages (http://dev.rjthompsonmusic.com/tour):
add_filter('tribe_get_events_title', 'my_get_events_title');
function my_get_events_title($title){
if( is_tax() ){
return $title;
}else{
return 'Tour Dates';
}
}
I want the word Tour Dates in the above code to display with a calendar icon next to it (<i class="icon-calendar"></i>) and also the $title should be returned with the calendar icon next to it as well.
How can I do this?
Many thanks for any help you can offer.
R