WordPress do not accept DIV Tag on my blog :|
Need help? Check out our Support site, then
WordPress does not accept div tag
Paste the code here in the forum between backticks (the key to the left of the #1 with the ~ on it). WordPress will indeed strip some div code that is not allowed, but we cannot tell if we cannot see it.
The code no have errors! A few minutes the code are accept, now no accept :(
The sidebar not accpet the div, but the pages accept :|
WordPress is obviously rolling out some new code for new features and bug fixes and when that happens, there can be glitches. My only suggestion is to give it some time for things to settle down.
But in WordPress FAQ have a information of accept tags and list div tag!
We are currently looking into some issues with recent code changes. I will post back when a fix is in place.
The WordPress fixed this bug, thanks!
Did they fixed raul008? when?
< div > was change into <p > .. others are gone.. :(
2.1 version tinyMCE will replace <div> by <p> when saving post, you may change this by hacking file: wp-includes/js/tinymce/tiny_mce_config.php
about 24th line, find:
$valid_elements = 'p/-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]‘;
$valid_elements = '-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]‘;
‘p/-div[*] to ‘p[*],-div[*]
‘-’ means remove empty elements
‘p/div’ means replace div by p
‘[*]‘ means any attribute allowed
At wordpress.com we have no access to php
The blog linkded to your name is at Blogger.
Div will work at the first save of your code.. but if you open it again the <div> tag will be gone. but try to save it at once, it works..
As 1tess says this is the WordPress.com forum, so you advice won't work, rybaxs, thank you though. strings are stripped out here.
This topic has been closed to new replies.