05/29/2015 at 11:56 am
#336040
Keymaster
@ Alex
This is possible but requires editing the excerpt-plus.js file. Open it and remove this:
// As the page is rendered the excerpt is hidden via the CSS style. Hide the details and show the excerpt.
$('.cn-hide').css('display', 'none');
$('.cn-excerpt').css('display', 'block');
$('h3.cn-accordion-item,span.cn-show-more').click( function() {
var $this = $(this);
var uuid = $this.attr('data-uuid');
if ( $( '#cn-detail-' + uuid ).css('display') == 'block' ) {
// Hide detail; show excerpt.
$( '#cn-detail-' + uuid ).slideUp( 1000, function() {
$( '#cn-excerpt-' + uuid ).fadeIn(1000);
$( '#cn-toggle-' + uuid ).toggleClass('cn-open');
});
} else {
// Hide excerpt; show detail.
$( '#cn-excerpt-' + uuid ).fadeOut( 1000, function() {
$( '#cn-detail-' + uuid ).slideDown(1000);
$( '#cn-toggle-' + uuid ).toggleClass('cn-open');
});
}
});
Instead of overwriting the original file, drop it in this folder (you’ll have to create it):
../wp-content/uploads/connections-templates/excerpt-plus/
Name the file as: excerpt-plus.min.js
Hope that helps!
