• WordPress keeps deleting or removing the little html codes I add into a page, like
    or <p></p> which I’m using to control layout. I’ll save a draft and preview and it looks fine, then next time it disappears…

    How can I prevent this?

    I’m trying to adapt a simple full width page to accommodate some basic page layout issues. E.g. I put a standard 98% width 3-column table up top on the page, so I can space out a picture in the left column, a menu of text links in the middle column and 3 action buttons on the right column, before I continue on the page with the full width text.

    I first tried this with WP tables reloaded, but had many problems. Then did the table in Dreamweaver (which worked perfectly) then brought it over to the WordPress HTML on the page (and adapted the custom.css to allow it). Table looks/works great, but every time I try and use
    or <p> or   or any of the HTML options I’m used to (for spacing) WordPress seems to disallow it after 1-2 saves.

    Anyone know a work-around?

Viewing 15 replies - 1 through 15 (of 20 total)
  • Are you switching editing tabs?

    Thread Starter an0zete0

    (@an0zete0)

    I don’t think so. I make a change. hit “update” then preview. Its there, then next time its gone

    Which editing tab are you using?

    Thread Starter an0zete0

    (@an0zete0)

    I’m using a premium theme called standard theme from 8bit. When I go into “pages” select ‘edit’ of the chosen page, it doesn’t matter whether I edit the page in the “Visual” tab or the “HTML” table, or whether I use <p> or
    or   to try and manipulate the spacing / design / layout, as soon as I press Save draft or preview, my inserts are zapped from the HTML and all hard returns or similar disappear.

    I can’t figure this out!? any ideas?

    The WYSIWYG auto removes <p> tags. I don’t think there is any way around this as far as I’m aware.

    Why do you specifically require P tags output? Do they have a particular CSS class? Or are they empty paragraphs with CSS to push content down?

    If you must hardcode HTML in the WYSIWYG, could you use a DIV or SPAN tag instead? I know span are not removed, as I’ve used them for image captions etc. on occasion. You can then style them with CSS.

    Thread Starter an0zete0

    (@an0zete0)

    Thanks. So does the WYSIWYG zap
    too?

    You’re right, I just want to push content down. From inside a field in a table, I want, for example, to have two clickable icons appear one above the other, instead of side-by-side. So I was just using <p> to try and manipulate that way.

    So instead of
    Image
    Image
    or
    Image <p> Image </p>

    You are suggesting what?

    What’s your best guess, if want to avoide engaging the CSS as well?

    Thread Starter an0zete0

    (@an0zete0)

    Image <span>   </span> ?

    Well a normal return/enter in the WYSIWYG should just put in an empty P tag. So after an image in a post, hit enter a couple of times.

    Ideally there should be already some padding on your <p> tags by default in your CSS.

    Do you have a link to where this is happening, I can suggest a better solution if I can see what the problem is.

    It’s pretty bad practice to have empty p tags to fix content layout issues. Ideally you should have something like this already in your CSS

    #content p { padding-bottom:10px }
    Thread Starter an0zete0

    (@an0zete0)

    Thanks. OK, I just published it to http://www.pressingsave.com/sbo-2 See what you can see. You can probably tell what I’m trying to do. In the middle column, I want each of the those 3 items on a separate line, and want to make them links to an AnchorText to the corresponding section lower on the page, and on the Right-hand (3rd) column, I want the buttons to appear in a vertical line with some space in between.

    Does this help you visualize what i’m trying to do and what’s not working?

    Yep, perfect, I get it now. Thanks.

    Your HTML:

    <img class="size-full wp-image-466 alignleft" style="border: 0pt none;" title="small pointer - down" src="http://www.pressingsave.com/golfpro/wp-content/uploads/2011/08/small-pointer-down.jpg" alt="" width="18" height="20"> Book Synopsis

    If you just put a <div> around the image, and after the text, it created a div block, and this makes sure the next div is pushed below, saving you having to use CSS or paragraphs to split it all up.

    <div><img class="size-full wp-image-466 alignleft" style="border: 0pt none;" title="small pointer - down" src="http://www.pressingsave.com/golfpro/wp-content/uploads/2011/08/small-pointer-down.jpg" alt="" width="18" height="20">Book Synopsis</div>

    So for each of the images and corresponding text, put a <div></div> around it.

    Hope this works for you.

    Thread Starter an0zete0

    (@an0zete0)

    slick. I’ll go to work. Thanks a mill. Will try tomorrow morn. Cheers!

    Thread Starter an0zete0

    (@an0zete0)

    ouch, how do I override WP’s resistance to let me rename a new file with the old name after I’ve finished a redraft?

    I carefully drafted an entirely new book landing page, while the old one was live. Went to upload it and it wouldn’t let me replace the name. So I deleted the old one, but now still am not allowed to rename the new one.

    So, http://www.pressingsave.com/surprised-by-oxford now has a 404 error because I’m not being allowed to manually override the permalink where it says “edit”. It just kicks back to a diff named file when I hit ‘save’.

    any ideas?

    I’ve found you have to trash the old one, and delete it permanently for you to be able to replace the permalink. I take it your new draft keeps saving as ‘/surprised-by-oxford-2/’.

    Take a back up of the old version, i.e. copy the html from the html tab, and any custom fields and store it locally in a text file for safe keeping, in case you need to rapidly restore it.

    You should be able to change the permalink without it automatically updating.

    Cheers,
    Harry

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘WP deletes my simple custom coding on page in tables’ is closed to new replies.