Hello,
If you upgrade all the CSS/JS Files, you will lose your Customization. Make sure to keep your Customizations different: http://docs.semicolonweb.com/docs/getting-started/theme-customization/ . Please consider following the Changelogs: http://docs.semicolonweb.com/docs-group/changelog/ and make the changes according to the list of Code Changes mentioned there.
You will need to update the js/plugins.lightbox.js File. Find the following block of code:
$.magnificPopup.open({
items: { src: elTarget },
type: 'inline',
mainClass: 'mfp-no-margins mfp-fade',
closeBtnInside: false,
fixedContentPos: true,
removalDelay: 500,
callbacks: {
open: function(){
if( elAnimateIn != '' ) {
$(elTarget).addClass( elAnimateIn + ' animated' );
}
},
beforeClose: function(){
if( elAnimateOut != '' ) {
$(elTarget).removeClass( elAnimateIn ).addClass( elAnimateOut );
}
},
afterClose: function() {
if( elAnimateIn != '' || elAnimateOut != '' ) {
$(elTarget).removeClass( elAnimateIn + ' ' + elAnimateOut + ' animated' );
}
if( elCookies == 'true' ) {
Cookies.set( elTargetValue, '0' );
}
}
}
}, 0);
and replace it with:
$.magnificPopup.open({
items: { src: elTarget },
type: 'inline',
mainClass: 'mfp-no-margins mfp-fade',
closeBtnInside: false,
closeOnContentClick: true,
fixedContentPos: true,
removalDelay: 500,
callbacks: {
open: function(){
if( elAnimateIn != '' ) {
$(elTarget).addClass( elAnimateIn + ' animated' );
}
},
beforeClose: function(){
if( elAnimateOut != '' ) {
$(elTarget).removeClass( elAnimateIn ).addClass( elAnimateOut );
}
},
afterClose: function() {
if( elAnimateIn != '' || elAnimateOut != '' ) {
$(elTarget).removeClass( elAnimateIn + ' ' + elAnimateOut + ' animated' );
}
if( elCookies == 'true' ) {
Cookies.set( elTargetValue, '0' );
}
}
}
}, 0);
- For the Cookies, first, you will need to add the
data-cookie="true" Attribute to the Modal on Load Element in the HTML File. Documentation: http://docs.semicolonweb.com/docs/shortcodes/modal-on-load/#docs-snippet-enable-cookies-on-modal .
Now, find the following code in the JS File:
Cookies.set( elTargetValue, '0' );
and replace it with:
Cookies.set( elTargetValue, '0', { expires: 1 });
This will enable Cookies for that Modal for a Day. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.