WordPress.org

Forums

NFSW CSS Problem (8 posts)

  1. user256
    Member
    Posted 1 year ago #

    I'm trying to build an adult website using twentythirteen (link here [NSFW]) modelled after another one i build in twentytwelve (link here [NSFW]) however i'm running into some problems.

    Firstly the excerpt is indented, less than a third of the entry area and even when i correct this using an absolute width the buy now and learn more boxes cover the title of the article below.

    can anyone offer any assistance?

  2. ronangelo
    Member
    Posted 1 year ago #

    Add this to your custom CSS

    .entry-summary {
        padding: 8px !important;
    }
  3. user256
    Member
    Posted 1 year ago #

    Thank you so much i spent ages trying to fix that!!

    Don't suppose you have any idea how to stop the custom fields overlaying the next title!

  4. ronangelo
    Member
    Posted 1 year ago #

    What custom fields?

  5. user256
    Member
    Posted 1 year ago #

    the buy now and learn more links below the excerpt are populated ising advanced custom fields

  6. ronangelo
    Member
    Posted 1 year ago #

    You've added height to posts #posts {height: 450px;}
    This forces posts with longer content to overflow to the one below.
    Remove the height. If you want you can add a min-height instead.

  7. user256
    Member
    Posted 1 year ago #

    Thank you so much for that couldn't see it for looking at it!

    out of curiosity why is the !important; required?

  8. ronangelo
    Member
    Posted 1 year ago #

    out of curiosity why is the !important; required?

    You mean here?

    .entry-summary {padding: 8px !important;}

    Just in case padding for entry-summary is already declared somewhere, adding !important will make sure our own declaration is followed.

    You can also make the css target more specific than the other declarations so you wouldn't have to add an !important

    .content article .entry-summary {padding: 8px;}

    Tip: just in case you aren't already using it, try to install firebug. It'll make website customization a lot easier and faster.

Topic Closed

This topic has been closed to new replies.

About this Topic