Are you switching editing tabs?
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?
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.
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?
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 }
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.
slick. I’ll go to work. Thanks a mill. Will try tomorrow morn. Cheers!
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