Different entry-footer for pages and posts

  • barbas


    Hey there,

    I’m having a small layout problem with my posts so what I would like to do is remove the 20px margin-top from .entry-footer but ONLY in the single posts display, I would like to keep the margin in pages.

    I’ve looked around for a solution to no avail so I hope you guys can help me!


    Kenneth John Odle


    Try this in your custom css:

    .entry #footer {padding-top:0px;}

    Not tested, but close.



    Hey there the above does not work but I was able to figure it out eventually. It was actually pretty easy as the rule:

    .type-post .entry-footer { margin-top: 2px; }

    does the trick. What this translates to is essentially: Find elements of the class entry-footer that are descendants (so are within the block) of an element of the class type-post and apply the rule.

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum