Can I get some Wordpress help please.

5 replies
  • WEB DESIGN
  • |
Hey all,

I have a custom <div> I'm trying to add to my page using wordpress.

I have it where I want it and it's displaying correctly however when I change the font color or background color in the associated css file and update it, it looks exactly the same.

I'm putting my custom div before the footer of the page but the colors and style being associated with my div is being styled like the footer is.

Any ideas what I'm doing wrong???

Thanks in advance!
#css #wordpress
  • Profile picture of the author Patrick
    If you can send the URL of your site and what you really want to do, then it would be more helpful for us to solve your problem.
    {{ DiscussionBoard.errors[3435876].message }}
    • Profile picture of the author cpalmquist11
      Originally Posted by schwarzes View Post

      If you can send the URL of your site and what you really want to do, then it would be more helpful for us to solve your problem.
      Well I'm attempting to emulate what the clickbank ad links look like at the bottom of dogcratesizes.com (another very helpful post had mentioned the site).

      I've got it positioned similar to this the way I want but when changing the colors or background or anything in my style sheet, none of the changes take place on the actual site.

      I'm guess I'm trying to find out if anyone has experienced this type of thing before where something in wordpress overwrites your stylesheet or something.

      Is there a setting or a certain code you have to add in the .php files?

      Any other site I've made each custom <div> tag formats according the rules you list in the style sheet but for some reason it's not working on wordpress.
      {{ DiscussionBoard.errors[3435896].message }}
  • Profile picture of the author Emilis Strimaitis
    I would suggest you do this: add another closing div tag after you close your custom div tag. For example you close your div: </div> and then you add another one. So at the end it looks like this:

    </div></div>

    See if that'll work, because you could have messed the div structure.
    {{ DiscussionBoard.errors[3436509].message }}
  • Profile picture of the author mlcmartin
    Maybe you have just missed a dot in front of your class name when you defined it in css? ;-)

    <div class="customclass">
    </div>

    css

    .customclass{
    background-color: #eee;
    }

    Should work fine if you put the css in the template style.css or if you add your own separate file and then put a link to it in the header.php.
    {{ DiscussionBoard.errors[3437491].message }}
    • Profile picture of the author TwilioExperts
      Banned
      [DELETED]
      {{ DiscussionBoard.errors[3444795].message }}
      • Profile picture of the author Karen Blundell
        if your custom div overrides the style in another div then you must include !important next to the css selector like this



        .customdiv {
        color: #ffffff !important;
        }

        let me know if that solves your problem
        Signature
        ---------------
        {{ DiscussionBoard.errors[3446527].message }}

Trending Topics