Support » Themes and Templates » Inserting CSS for a singular page

  • Resolved KalElVZ


    I know there have been some posts that touch upon this, but it doesn’t seem to work in my case.

    Basically, I have a page on my site that looks awful right now because it’s not formatted correctly.

    I tried turning the visual editor on and trying to use the ‘Code’ part, but there are some rather pesky little < p>’s in there that don’t show up when editing. You’ll see them when you view the source, too. I tried turning the visual editor OFF and doing it. Still, it doesn’t show the < p> anywhere, even though I know it’s there.

    This is how I WANT it to look. Pretty simple, right? Just add some padding to a certain div or hell, even just < br /> if you really need to. But br seems to get pretty wonkified if I try, and the divs aren’t behaving properly.

    How do I just enter straight up code into it that will render correctly? I’m so sorry if this has been answered elsewhere; I’ve spent about 2-3 hours looking for a response and perhaps I’m not searching for the right thing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    How do I just enter straight up code into it that will render correctly?

    You don’t. WordPress was not designed to take “code” as posts. It was designed to take text and other minor formatting as posts. Those paragraph markers you’re seeing are automatically inserted by WordPress at the time of display. They’re necessary for semantically correct HTML.

    If you want to actually put code directly onto the page, create a page template for that page and then put the code onto the template. You should not be putting complex things like forms into post content. Anything special like that should be done in some other way. Oh, it’s certainly possible to use forms in posts, it’s just not a particularly good idea. The whole point of posts is that they are simple content, not actual page design.

    The idea is separation of content from design/layout. Forms are part of the design/layout, not the content. The content goes into the database. The design/layout goes into the template/plugins/what have you.

    Also, your meebo thing doesn’t work for me. Blocked by webfilters. Non-standard means of communication mostly just makes people unable to communicate with you. A link to a mailto: address would be better. Works everywhere and with everybody.


    First off, thanks for responding, I really appreciate it.

    Alright lemme tackle the simplest issue first- the reason I went with my email address just as an image, and not a mailto is because I was getting a LOT of spam from bots reading the mailto address. So I’ve stopped doing that. The Meebo is just an extra way of seeing if I’m online. It’s unfortunate that it didn’t work for you; if I get word from more people that it’s not working for them, I’ll just drop it. 🙂

    NOW for the hard part.

    Alright, I understand what you’re saying– the posts are built for simplicity and not for major ‘coding’ per se. However, just as a side note, I’d like to make it known that I’m not putting any forms anywhere- the Meebo Widget (I think that’s what you were referring to) is just an embedded Flash object.

    So all I wanted to do is just position that correctly.

    Which leaves me with the option of the page template. Okay. Sounds reasonable, and hell since this is the kind of thing I like, I might try that. Question is– where do I start? I’m still getting acclimated with WP.

    Thanks a bunch; Have a great day


    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    I didn’t notice the image of your email address. That looks fine, however I’d still make it a mailto:. Why? Well, here’s the thing: Hiding your address does not prevent spam. Spammers know your address. Really. You’ll get spam regardless. The way to solve spam is to fight it directly, not to try to hide yourself from the world.

    Do what I do: Route email to a gmail account. The spam filters they use are nothing short of incredible.

    Anyway, I just assumed you were trying to use a form, the meebo thing is wholly invisible (blocked) to me so it’s just a big blank space.

    For page templates, you might want to read up on these, could be useful:

    Also, note that “embed” is not standard HTML or XHTML and won’t validate. You should be using some form of “object” tag to do that instead.

    Oh wow- I didn’t know that it wasn’t standard HTML/XHTML. I feel sheepish.

    Alright I’ll take your advice on the mailto function. It sounds like a plan.

    And I’ll go read up on Page Templates.

    (I feel like a kid in grade school trying to appease a teacher.)


    Thanks a bunch Otto. Have a good one.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Inserting CSS for a singular page’ is closed to new replies.