WordPress.org

Ready to get started?Download WordPress

Forums

HTML code not working (10 posts)

  1. Spiritof72
    Member
    Posted 2 years ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

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

  3. CreativeWP
    Member
    Posted 2 years ago #

    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,

  4. Spiritof72
    Member
    Posted 2 years ago #

    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.

  5. CreativeWP
    Member
    Posted 2 years ago #

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

    Thanks,

  6. Spiritof72
    Member
    Posted 2 years ago #

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

  7. mark10
    Member
    Posted 2 years ago #

    I have same problem.Thanx for information.

    [Link removed]

  8. CreativeWP
    Member
    Posted 2 years ago #

    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,

  9. Spiritof72
    Member
    Posted 2 years ago #

    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.

  10. CreativeWP
    Member
    Posted 2 years ago #

    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,

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags