Can i set css class for table via TinyMCE [closed]

This is possible with a custom plugin, but lot of effort. I like the way about css in the front end. The table button in TinyMCE creates a default table, without classes, like: <table> <tr> <td>Text</td> <td>Text</td> <td>Text</td> </tr> <tr> <td>Text</td> <td>Text</td> <td>Text</td> </tr> <tr> <td>Text</td> <td>Text</td> <td>Text</td> </tr> </table> Below a simple example to … Read more

Adding custom post formatting options in custom post types

maybe it’s too late, but I found out how to solve this so I think I could share my solution. You have to access the global $post variable to find out the post type: function haet_custom_toolbar( $initArray ) { global $post; $post_type = get_post_type( $post->ID ); if( ‘page’ == $post_type ){ $initArray[‘toolbar1’] = ‘formatselect,styleselect,|,bold,italic,|,alignleft,aligncenter,alignright,|,pastetext,removeformat,|,undo,redo,|,bullist,numlist,|,link,unlink,|,spellchecker,fullscreen’; $initArray[‘toolbar2’] … Read more

Visual Editor is blank – 404 for plugin js

Have you updated to the latest version of the WCK – Custom Fields and Custom Post Types Creator plugin? The issue is with the WCK – Custom Fields and Custom Post Types Creator plugin and you should probably seek direct assistance from them. https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/ When I checked the plugins code (vers. 1.1.5) I can see … Read more

How do I hide tinymce within the edit screen of a particular page

Have you ever tried the functions described here? It seems to be exactly what you’re looking after. Here’s a slightly variation of the function for reference: // Run only when editing a page // For new pages load-page-new.php should be used // See: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/admin.php#L217 add_action( ‘load-page.php’, ‘hide_tinyeditor_wp’ ); function hide_tinyeditor_wp() { // Not really necessary, … Read more

Why exactly does WordPress use p tags, not divs?

You should simply not use <div>-elements to seperate paragraphs from each other. It´s wrong in the semantical context, I think. When you press “Enter” you make, from a historical point of view, a “carriage return” and then a “line feed”. You start a new line, maybe a new paragraph but nothing completely new. If you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)