I am new to WP and just need to know if there was a special code to use to get my own css layout files to work inside of posts.
Ben
Just kill (turn off) the idiotic wysiwyg (visual) editor and you can put any html tag – like your own divs – in any post or Page.
I have entered the following code to try in-line css. When I click save it deletes most of the styling. is this the wrong way to achieve my own layout?
<div style=”margin:auto; width:750px;”>
<div align=”center” style=”float:left; height:500px; width:150px;”>CONTENT</div>
<div align=”center” style=”float:left; height:500px; width:150px;”>CONTENT</div>
<div align=”center” style=”float:left; height:500px; width:150px;”>CONTENT</div>
<div align=”center” style=”float:left; height:500px; width:150px;”>CONTENT</div>
<div align=”center” style=”float:left; height:500px; width:150px;”>CONTENT</div>
</div>
In a way yes, it is absolutely incorrect to mix content and design.
Next: align=”center” is invalid code for XHTML
And I will ask again: did you turn OFF the visual gizmo? Otherwise it will never work.
I was trying out inline css just to see if I could get a result with css. It worked to a certain degree. but with different users it seems to be deleteing the id code and other inline code when the user goes into to edit.
So what you are saying is, the gizmo editor is useless?
Is there any way around this as I really need users who dont have html knowledge to be able to edit their page with the wysiwyg gizmo.
why would they create wysiwyg editor that deletes very important code?
Thanks for your time Moshu
If I make the user an “Editor” then he can use the WYSIWYG editor without deleting IDs etc. very strange. currently i have them set as “Author”
But as an editor he can view all other users private posts. Is there a way to edit the rights of each user type?
I should check out the database for users. Maybe I can disable viewing of others as an editor? Or enable what ever it is that it rendering the WYSIWYG editor useless for the user types “Author”???
The wysiwyg is NOT for code. Period. If you know code – you don’t need the wysiwyg. The visual editor is for the code illiterate users, and they should never use code (since they are illiterate). So, this dilemma is solved.
Next. The on/off is per user: each can have it set differently!
Also, lower level users by default are NOT permitted to use unfiltered HTML code – because they can screw it up, they can insert malicious code etc. There is a reason for everything. Or almost everything 🙂
If you want custom settings for your users – install the Role Manager plugin.
Hey Moshu,
Thanks for your help. Role manager is just the ticket! Actually I’m finding out now much more about word press. Yesterday was the first time I tried it. It certainly has a vast amount of plugins and possibilities. awesome software!
Thanks again man
Ben