I am trying to display individual category using shortcode, but the layout seems to be broken. What i am doings is, that, when a category name is presed, i have ajax function, that returns ID of that category and inserts it into shortcode that display calendar.
1. this is the function that gets all categories and displays them
Hello.
I am trying to display individual category using shortcode, but the layout seems to be broken.
What i am doings is, that, when a category name is presed, i have ajax function, that returns ID of that category and inserts it into shortcode that display calendar.
1. this is the function that gets all categories and displays them
2. This is my ajax function
3. This is the function that is suposed to show calendar in modal
But the result is returned like this, the layout is broken.
I've checked other submitions, and nothing seems to work.
Force load calendar scripts is turned on and so on
Your calendar is appended but it is not initialized.
Make the following changes:
Server side php the ajax should return something like this:
Front-end javascript:
Stachethemes Developer
Hello, thank you, but how can initialize this - new Calendar_Instance? IT seems to crash everything, but i cant find documentation for this.
How to add class or something that understands what new Calendar_Instance is?
I've generated random id in the PHP script on this line:
Stachethemes Developer