Forums

HTML in pages (2 posts)

  1. jlf78
    Member
    Posted 3 weeks ago #

    Hi,

    I'm not a specialist in HTML/CSS but I'm fairly good.
    I designed a page with icons, blocks, div's etc... in CSS/HTML wichh works fine as long as it stays a .html.

    But when I copy my CSS in the theme CSS and my HTML in the article, it gives erratic results.

    Three possibilities:
    1) I goofed somewhere with the CSS. But again it works outside WP.
    2) The theme is bugged
    3) WP doesn't really support HTML in the articles and I have to stick to really simple articles.

    Please give me your experience.

    Jean-Luc

  2. stvwlf
    Member
    Posted 3 weeks ago #

    Choice 3 is closest to the truth. The WordPress editor strips various HTML tags out of post content. You can remove some but not all of that reformatting with various unformat plugins and code - the WP function that needs to be turned off is called wpautop.

    One such plugin is here - read the instructions if you use it.
    http://wordpress.org/extend/plugins/wp-unformatted/

    There are various workarounds depending on the need
    -Custom Page Templates
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    -adding code WP editor doesn't allow in a custom field that is inserted into the post with a shortcode. The editor won't touch that

Reply

You must log in to post.

About this Topic

Tags