What are the downsides of using bootstrap in plugin development?

Yes, there are clearly challenges to using such a public dependency as Bootstrap, especially in a public plugin: version conflicts; styling conflicts; script conflicts. To minimize possibility of conflict and breakage you would need to consider following extra steps: Importing just the necessary Bootstrap styles into your stylesheet and making them specific to only markup … Read more

Creating Event Builder Plugin [closed]

While this question needs work, (show us your code, what have you tried, what exactly do you want to do with specifics, ect), my answer would be this: 1) Display the description, but apply display: none via CSS to it’s container div to hide it. Then write some javascript for an onclick event to apply … Read more

wordpress select multiple options and illegal string offset ‘timeslot’ [closed]

You are getting illegal string offset ‘timeslot’ because $time is not an array, it is an item in array $timeslots. You have already retrieved the values submitted using $timeslots = $_POST[‘timeslot’]; Your code also contains other typing mistakes. Here is corrected code: <form method=”POST”> <select name=”timeslot[]” multiple=”multiple” size = 4 required> <option value=”1″>1</option> <option value=”2″>2</option> … Read more

Load css classes after using ajax calls

Styles won’t be affected if you use different selectors. Create a custom stylesheet, and enqueue it immediatelly. When the page is ready just apply the styles to the mentioned responsive div, or create some logic behind it. So for example if you have <div class=”custom-sidebar”>Some content</div> Enqueue custom style within functions.php wp_enqueue_style( ‘some-custom-styles’, get_stylesheet_uri() . … Read more