WordPress.org

Ready to get started?Download WordPress

Forums

Pages - Custom HTML insert jammed (4 posts)

  1. theserpent
    Member
    Posted 5 years ago #

    Hello!

    I'm writing pages on a wordpress powered website, and I struggle big time to insert HTML script made on Dreamweaver to the code of the page.

    I want to do something very easy, split the page in two vertical part.
    Text on the left, and a contact form (in this case, but images and flash animation for other pages) and when I pasted the code in WordPress, the table looks completely different and jammed.

    A bit like when you align an image, but i cant get that code working for other filtypes...

    Here's the code I made on Dreamweaver and pasted into WordPress:

    <table width="99%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><p align="left"><strong> This is is a text i want to put aside the Contactform7's form. </strong></p>    </td>
        <td rowspan="2">&nbsp;</td>
        <td rowspan="2">[contact-form 2 &quot;book now]</td>
      </tr>
      <tr>
        <td>this is a tab so the text above stays on top and wont align if the middle because the contact form is 1000 pixel height and the text above 500 px </td>
      </tr>
      <tr>
        <td><img src="spacer.gif" width="500" height="2" /></td>
        <td><img src="spacer.gif" width="20" height="2" /></td>
        <td><img src="spacer.gif" width="400" height="2" /></td>
      </tr>
    </table>
    </body>

    Do anybody know how to make this page split, i'd greatly appreciate it.
    Thanks for reading!

  2. sojweb
    Member
    Posted 5 years ago #

    Got a link we can look at? That </body> at the end of your code is probably causing some troubles; that probably shouldn't be there.

  3. theserpent
    Member
    Posted 5 years ago #

    thanks, I didnt use the body script, just in this pasted form,
    but i noticed that the size is the problem. it comes up in approx 1300 pixel wide and screws the site main layout.
    So I changed the 99% to a 9000 pixel and nothing different came accross.

    I think it's the complex coding of wordpress that doesnt tolerate regular HTML.
    There must be a custom line to add in the script to talior make it to WP.
    What do u think?

    (No link available at the mo unfortunately)

  4. sojweb
    Member
    Posted 5 years ago #

    The only thing WordPress might be doing is filtering the HTML; make sure you're allowed unfiltered HTML (Editor and Administrator have that privilege, and you can use the Role Manager plugin to grant it to other roles).

    If that's not it, it's your theme getting in the way, or some weird content filtering that a plugin somewhere is doing.

Topic Closed

This topic has been closed to new replies.

About this Topic