WordPress.org

Support

Support » How-To and Troubleshooting » HTML code not working

HTML code not working

  • I have set up a perfectly fine table on a wordpress site that uses 3 background colors for the heading boxes on the tables. It works perfectly. On my new site on buddypress, I simply copied the code and the table does not want to show up any colors in the heading boxes. It does show up in the visual editor, but when it is published on any buddypress theme, the color does not show up. Any ideas why?

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    @esmi

    Forum Moderator

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

    Spirit of 72, some times, there are General CSS rules which are already established on your website, which won’t allow the adding new properties, unless, they are set to override the present css, for example:

    <div class=”table”> code here </div>

    .table {color:#ddd;} present already in your theme. So to override this you may do two things, find that css in your css in your theme. If you cannot find it, then do this.

    .table {color:#000!important;}

    The !important; will tell the other css, ME FIRST and only.

    Cheers,

    I have looked on my theme and did not find it. Do I put that code on the page where the table is or somewhere else? I’m sorry, I’m very new at coding so it gets difficult quickly for me.

    Put the like to your website, so we can look.

    Thanks,

    http://www.thedivanation.com It’s on the memberships page.

    I have same problem.Thanx for information.

    [Link removed]

    I have one question, I am looking at your boxes, did you do those boxes manually? If so, you should be able to FIRST take away statements within the Table html, like bgcolor=”red” and the like, then, if you want some boxes to have color, let’s say Grey. Then you would do this:

    .redb {background: #F00;}

    Then in the <td bgcolor=”red”> then do this <td class=”redb”>. Only put it in the boxes you want themn to be red.

    This should do the trick to color columns. Let me know,

    That doesn’t work or I’m sure where exactly to put those. When I put it in, the whole table messed up and then the <td class=”redb”> completely disappeared. I need to see how the code looks exactly for one row with color.

    Oh, sorry, this code goes to your main css of your Theme, if you do not know where it goes, or where even the css, you should get professional help. You could mess up your whole website. Go to my Website then we can talk.

    If you want to be adventurous, then go to styles in your Theme, then add this line to your main css:

    .redb {background: #F00;}

    Then the other code in your table.

    Cheers,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘HTML code not working’ is closed to new replies.