• Hello All,

    I want to add ‘<body bgcolor=”#f1ce35″>’ to this page: http://www.prccustomresearch.com/events/excellence-in-healthcare-conference/

    New to coding, but from what I understand, I need to locate ‘<body class’ and find the name of the page, then I can go into CSS and create a rule.

    Two Questions:

    1) When I look at the page via WordPress via the “Text” tab, there is no ‘<body>’ code anywhere; why is that, as a general question? It isn’t just this page, but all pages within WordPress, so what am I missing? Shouldn’t I just be able to add ‘<body bgcolor=”yellow”></body>’ for HTML & have it work?

    2) So since I can’t add via HTML, I move to CSS. When I look at source, there is no ‘<body>’, only ‘<body class=’ and ‘<div class=’. If there was a ‘<body>’ then I could add {
    background: #f1ce35;
    }, correct?

    I may be crossing the streams here, but looking forward to a response.

    Thank you in advance!

Viewing 1 replies (of 1 total)
  • anonymized-13749270

    (@anonymized-13749270)

    hello.. in WordPress, your posts and pages will be added to a main container which has a <body> above.. means you can not do <html><head></head><body> inside a post text editor.. changing body color for one post/page is not allowed but:
    while creating post/page , keep using text-editor mode, and add this on top:

    <style>
    body { background-color: red; }
    </style>

    note: when you switch visual and text mode you will lose those styles..
    all the pages, home, archive, categories, tags, search results etc that have that post on first will have that background-color ..
    i don’t even think this will be approved by mods lol

Viewing 1 replies (of 1 total)

The topic ‘Adding BG Color to Single Page; vs’ is closed to new replies.