Your code looks good.
You may have some more JavaScript code that is making some confict. Try changing the parameters id
In the button
data-target="#myModal"
to
data-target="#myModal-custom"
And the modal window id="myModal"
to id="myModal-custom"
Please read the official documentation of Bootstrap.
Related Posts:
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- Bootstrap Drop Down menu is not working
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- jQuery for custom plugin not working with Divi theme
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Is there any known plugins that would replace WordPress classes in editor with their Bootstrap 4 equivalent?
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?
- What are the downsides of using bootstrap in plugin development?
- WordPress sharding: which multi-DB plugin to use?
- How can I prevent a plugin from updating unless it’s minimum PHP version is met?
- wp_enqueue_scripts not working in custom theme
- Is there a plugin to show the code tag button on the visual editor?
- Additional, optional fee on Woocommerce Checkout [closed]
- Why does including a file in theme’s functions.php not work?
- OEmbed from Pinterest
- Posts wont expire
- Add Top-Level Menu that opens URL
- Override Theme CSS with CSS from a plugin
- How to limit 1 image per post on homepage only?
- Something is generating spam pages on my site
- Popup Cookie WordPress select language and section (Elementor)
- Remove filter from WordPress Plugin
- Gutenberg List Extension Block
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Regenerate images with automatic ALT and TITLE attributes
- Making menu link open in new tab?
- Single Must Use Plugins Directory for local development
- ReOrder Post Within Categories plugin with featured image
- How to initialize something in unit test before the init hook being called?
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- add_filter comment_edit_redirect not working
- Advice for a voting / multiple rating plugin for post types other than GD Star Rating [closed]
- How to write a plugin to add users to a mail list
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Force Plugin Updates: “Update Failed: Plugin update failed.” after update one plugin
- Create mobile navigation header with settings integration
- Two text domains in one plugin
- Combine scripts from all extensions of the plugin when an extension is activated
- Add woocommerce variation images in gallery?
- Access WordPress data from external PHP application.
- Checkbox conflict in my custom plugin admin page
- Can you use another Profile Builder shortcodes through advanced custom fields
- Comment section not showing correctly
- add input in custom javascript from WordPress pages/posts
- WordPress stats API key
- How do I find out what is in control over a certain part of a website?
- Calling the_excerpt from inside a plugin template file
- Anyway to convert a plugin to become a shortcode?
- How to automatically add edit link on frontpage post of any wordpress theme?
- Use different single.php file based on condition
- Change the style of h1, h2, only in post entry
- Pass user role to javascript code inside body
- Blog previews on custom page with more buttons
- Elementor page builder plugin not loading up all the way? [closed]
- Customize Menu | Styling LESS/SCSS code formats
- show my own admin_notices after a post has been published
- Custom form not showing in correct place on page
- Plugin option default value
- Post via git repository
- Dropdown menu on click change
- restrict subscribers to admin area. They have their own profile on fron-end
- specific rows style for in custom list table using WP_List_Table
- How to turn my WordPress site into a ready to deploy template?
- Optimal image size for wordpress?
- How to add the search page link to the anchor tag?
- How to override Plugin javascript function : $(‘body’).on(‘change’,’.class’)
- How to fetch WordPress database values in JavaScript widget
- Possible way of having multiple Gutenberg instances for a page?
- WordPress: Can’t connect to the Akismet servers
- Plugin updates, change file permissions on WordPress
- I am Getting Sorry, no posts matched your criteria on form submit only for certain page [duplicate]
- Plugin information tabs show large blank area at top
- Dynamic input fields in WordPress Plugin
- Custom role not listed
- How to fix blog article view and share #’s?
- How to Prevent User From Submitting Property Or View His Posted Properties Before Login in wordpress?
- How to hide the form after successful php execution
- WP Rest API v2.0 user profile update issue
- Change default url to plugin custom post type
- Attachments plugin cannot click media library button [closed]
- Is there any hook to change media html in post? [duplicate]
- plugins_loaded action is not working properly
- Creating a user ‘add custom field’ section
- WordPress Settings – Custom Button actions
- Is there a way to upload an external folder in WordPress?
- After installing plugins, changes don’t appear
- Links on FAQ page aren’t working
- How to add a plugin in WordPress theme directory?
- wp insert post not working
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I display an attribute from each post inside foreach($latest_posts1 as $post )
- Wrong block appender button showing
- Check Plugins in Use by Mutli Site Network
- Plugin with Fatal error
- Uncaught Error: Cannot use object of type stdClass while showing the list using WP_List_Table
- Select posts from list and add them in a new list
- Plugin to transfer new/updated files from media library in “/wp-content/uploads/” between prod environment and preprod environment?