I’m using wpDataTables plugin on my WordPress website to draw some tables and charts. The charts are rendered using Chart.js. The developers of the plugin created a custom script to control some more aspects of Chart.js than the plugin can handle out of the box. That’s the script: In this example it hides the axes of the chart with the
Tag: wordpress
Tagdiv Composer loads to infinity: WordPress Plugin
I am new to Wordpress. I am working on a news website with the Newspaper theme and Tagdiv composer plugin After working for a week I have developed a problem which I explain below. Whenever I want to edit pages with TagDiv Composer, the large spinner icon shows and starts loading. It stays there like forever until I close the
Remove tag using javascript
Is there a way to remove title tag using javascript? I tried to do this but it failed because title tag is not a node (console said). I need to force a Wordpress plugin to overwrite the default title tag with a custom one. Any ideas? Answer The title property just contains a string representation of the title. It doesn’t
Insert/Edit link modal text fields can’t be focused TinyMce WordPress
I have a TinyMce instance inside a bootstrap Modal. When i click the “Insert/Edit Link” button, the modal opens correctly but the text fields are not focusable The checkbox interacts correctly, but If i click the input fields, nothing happens. Ideas? Answer The actual issue going on here is that most modal systems (Bootstrap Modal, Magnific Popup, etc.) disallow focusing
Recreate an object from an array of objects in Javascript
I could use some help with the following: I’m trying to create a filterable wordpress nav menu using React Tree Menu. The Tree Menu component requires the following data structure: I have set up parent and child pages of the above in wordpress and have also created a hierarchical wordpress menu. I am using the wordpress menu api which returns
PHP Code breaking responsive navigation toggle on homepage
I am having a problem with the responsive menu toggle not expanding on a site I am working on. Essentially when the site is resized below 768px the menu is replaced with a menu toggle that when clicked/tapped it should show the two options About & Shop. However when clicked nothing happens, it simply adds #navigation to the end of
how to load Javascript in WordPress Plugin
Can someone show me how to include this javascript file into my wordpress plugin. I have tried all the wp_enqeue_script() methods but nothing happens. ok here is my example plugin code with comments explaining what I would like. this is the popup.js So does anybody know how to call this script to work correctly in wordpress plugin? Answer You need
JQuery Error: Uncaught TypeError: Object # has no method ‘ready’
my site is getting the error in this title in the javascript console. Google seems to say that it is because jquery isn’t loaded, but it is definitely visible in the head. the site is medical marijuana related, so nsfw for some.sorry for the messy head, it’s in dev mode. http://www.kindreviews.com/1/mmc/ Thanks, zeem Answer Apparently you are using both jQuery