Forums

Turning to p's Help (8 posts)

  1. Ralph23
    Member
    Posted 4 years ago #

    So everytime I go to edit a page and switch over to the "Code" tab, it switches all the

    "<div id=blah>hey</div>" 's
    to
    "<p id=blah>hey</p>" 's

    which ruins what I'm aiming for in the design of that particular page and screws up margins. Is there anyway to stop this? I mean, it's really annoying. I type this thing, and wordpress decides to change it to that thing... what's the point? Help please, thanks.

  2. bekabug
    Member
    Posted 4 years ago #

    Seems like you know HTML so stop using the visual editor...it's lame.

  3. Ivovic
    Member
    Posted 4 years ago #

    +1 on ditch the visual editor.

    It can be perfectly useful as long as your design is completely removed from the content... which is barely ever actually possible, despite that being the point of CSS.

    Unfortunately some things just require nested elements, and as far as I'm concerned, tags and IDs and classes and other markup is *design*, not content.

    ...

    Having said that, there's really not much you can do with a <div> that you can't do with a correct CSS definition for your <p id="blah">

  4. bekabug
    Member
    Posted 4 years ago #

    Putting a div in your post really shouldn't ever be necessary if you can stay on top of your CSS.

    for instance you could use:

    <h3 class="info">Something would go here and you could style it all special like.</h3>

    The editor would be much less likely to butcher that. One other thing...edit your quicktags to keep your classes fresh in your mind and handy.

  5. Ralph23
    Member
    Posted 4 years ago #

    As longas I stay on top of my css? No...no no no.

    See, when I type something as part of a design, I WANTED that. I don't want wordpress to change it for me. I wanted a div id not a p id.

    Now for all you apparently godly css'ers, tell me, how do I make a <p> not make the content immediately following the </p> NOT go to the next line and instead stay on the same line?

    This is why I want a div and not a p.

    There has to be a way to fix this from happening, even disabling the visual editor or something?

  6. hakre
    Member
    Posted 4 years ago #

    Ralph23, just in case you haven't notified: If you want something to be the way you typed it, it is a good advice to not use wordpress at all. WordPress gets your input, throws it out at the street, let tons of cars rail over it, get it then in the clinic, get it pumped up there again, with some luck it comes back and is then delivered to your browser.

    So if I get you right and you mean "when I type something as part of a design, I WANTED that" seriously, then please, stop using wordpress. Or there is somewhere a plugin (can not remember it now) that completely de-activates those wordpress own code parsers. This should do the trick as well.

  7. Ivovic
    Member
    Posted 4 years ago #

    "Now for all you apparently godly css'ers, tell me, how do I make a <p> not make the content immediately following the </p> NOT go to the next line and instead stay on the same line?"

    Div's do that by default as well, so the answer is the same CSS you use for the div will do it for the P element too.

    try display:inline for instance.

  8. hakre
    Member
    Posted 4 years ago #

    Searched for some plugins that might be of use:

    1. Disable wpautop Plugin
    2. WP Unformatted

    This is all about Filters and you can create a plugin that removes them all so you really get it the way you type it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.