|
|
Click on a calendar date to view events on that day
Started by: BD
in: Toolset Professional Support
Quick solution available
Problem:
How to make a link to the single post in the Calendar View in a classic View.
Solution:
I added the [wpv-post-url] shortcode to show the post URL. Then I wrapped it in a div with a class:
<div class="calendar">[types field='important-date' style='calendar'][/types]<div class="the-post-url" style="display: none;">[wpv-post-url]</div></div>
Then I added the JS code below to JS Editor to move that URL to the proper A tag that you made it bold:
(function($) {
$('div.calendar').each(function() {
var theURL = $(this).find('.the-post-url').text();
$(this).find('table a').attr('href', theURL);
});
})(jQuery);
|
|
2 |
7 |
3 years, 11 months ago
BD
|