Keyword

K2 frontend editor 2.8.0 - close button closes browser tab

More
6 years 5 months ago - 6 years 5 months ago #165186 by Aram
Yes I understand. I did not get any other error.
I manage to fix this. What the close button actually did, was closing the lightbox and refreshing the page.
I found a div which closes the lightbox. So i modified it with CSS en jQuery to refresh the page after closing.
This div is:
<div class="mfp-close"></div>

The script is use is:
// refresh after closing lightbox
$(document).on("click", ".mfp-close", function(){
	location.reload(true);
});
You also need to play with the CSS to make this div visible.
This is my CSS:
.mfp-iframe-holder { padding: 40px !important;}
.mfp-iframe-holder .mfp-close{
display: block; 
top: -30px; 
width: 60px; 
height: 60px; 
right: -20px;
 z-index: 1; 
opacity: 1; 
padding: 0; 
box-sizing: border-box; 
cursor: pointer; 
background: url("../images/close4.png") center center no-repeat; 
background-size: contain;
}
Don't forget to use a background image.
I know this is not THE solution, but it might help others, till there is a better solution.
Last edit: 6 years 5 months ago by Aram.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 5 months ago #165202 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 frontend editor 2.8.0 - close button closes browser tab
It's not the solution but it is adequate.
If it was used in your overrides, then it is future proof as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum