Skip Navigation

[Resolved] Modal no longer fires when I switch toolset to bootstrap 4

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Cody Benson 4 years, 4 months ago.

Assisted by: Waqar.

Author
Posts
#1807193

I have an existing working view at hidden link when toolset is set to bootstrap 3. When I switch to bootstrap 4, the modal does not open and no errors are displayed in the console.

#1807413

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some tests on my website and noticed that for the Bootstrap 4 modal, the target ID needs to be alpha-numeric.

From your view's code, it seems that the modal is set to use the current post's ID, as the modal's target ID, which is numeric.

Existing code for the button:


<button type="button" class="qv btn btn-info btn-default" data-toggle="modal" data-target="#[wpv-post-id]">Quick View <i class="fa fa-eye"></i></button>

Existing code for the modal:


<div class="modal" id="[wpv-post-id]">
...
</div>

Updated code for the button:


<button type="button" class="qv btn btn-info btn-default" data-toggle="modal" data-target="#section-[wpv-post-id]">Quick View <i class="fa fa-eye"></i></button>

Update code for the modal:


<div class="modal" id="section-[wpv-post-id]">
...
</div>

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1808855

My issue is resolved now. Thank you!