Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

two buttons with popup with same content

2 years 1 month ago #1

  • Martin's Avatar
  • Martin
  • Posts: 246
Hello,
how can I set two buttons on the page to show the same popup content? The thing is that customer want in the menu this button and also at the bottom of the page. In the popup will be growing content and it would doesn´t make a sence to make it twice every time.

I guess it could be make by library by Global settings, yes? But is there some other way?

Thank you.

2 years 1 month ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 22679
Hello,

Thank you for contacting us

I don't duplicate the overlay section, this can only be done using custom JS code.

Best Regards,
Vyacheslav, Balbooa Support Team

2 years 1 month ago #3

  • Martin's Avatar
  • Martin
  • Posts: 246
And could you help me how could be done?

Thank you.

2 years 1 month ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 22679
You need to create an overlay section (fully customize).
And create a button with class custom-button

In the code editor use JS code

Code example:
document.addEventListener('DOMContentLoaded', function(){
  jQuery('.custom-button').on('click', function(event){
      event.preventDefault();
   jQuery('.custom-overlay').trigger('click');
  })
});

Replace custom-overlay with the path to the button that opens overlay section.

Best Regards,
Vyacheslav, Balbooa Support Team

11 months 4 days ago #5

  • Oleg's Avatar
  • Oleg
  • Posts: 103
How can I do this for a menu item?

11 months 3 days ago #6

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 22679
Hello,
Thank you for contacting us

Answer in this post
support.balbooa.com/forum/gridbox/2475-o...ng-on-the-link#61262

No need to duplicate the question

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum