Wordpress Formatting Issues

by 8 replies
10
Hey guys, I have been racking my brain with wordpress trying to get HTML in there without it getting jacked up by the visual editor...

Anyway, I stumbled upon a plugin called "raw html" which is a gift from the wordpress gods!

I still have trouble getting johnson boxes (haha I said johnson - I know, I won't quit my day job)to align in the middle. When I switch from HTML to Visual it just loses it <div align="center"> tag and goes back to the left automatically.

However when I save as HTML without switching, it works... very annoying!

For some reason, the raw html plugin doesn't work for this. I am just going to stick to using the quotes as johnson boxes because I don't have time to mess around with the code.

My question is this: Do you know why this happens, and if so, how do I work around it?

Best regards,
Dean
#website design #formatting #issues #wordpress
  • I don't know why that happens - but just a thought - have you tried using a table instead.

    I often use them in Wordpress as a way of making sure things line up and stay where I put them!
    • [1] reply
    • So just stick in the way it will works.

      Try to check the plug in if it is compatible in your Wordpress version or check the plug in if it is really activated.
  • Make it a graphic - set it up in your regular html editor, take a screen shot, trim it up in say, gimp, save as a jpeg, then center the image. Link the whole thing.
  • The visual editor automatically cleans up and changes your code. It's just the way wordpress works.

    The CSS of your theme can also cause conflicts. Can you center images at all? If not, slapping something like this...

    ... into your CSS file should solve the problem. Of course, that could also cause conflicts with the rest of your theme.
  • or you could try the link below and get it sorted out for free.

    I hope this is not coming out as spam, it is genuine help to businesses.

    Thanks
    • [1] reply
    • You should be using proper html and manually placing in the editor using HTML mode.

      <div style="text-align: center;">

      WP won't dump this.
      • [1] reply
  • Switch off the visual editor in your profile page and it will be fine

    It just doesn't save if you switch and try to save afterward with html, iframe, javascript. Its not the best editor and they need to improve it

Next Topics on Trending Feed

  • 10

    Hey guys, I have been racking my brain with wordpress trying to get HTML in there without it getting jacked up by the visual editor... Anyway, I stumbled upon a plugin called "raw html" which is a gift from the wordpress gods!