New Landing How can we help? Themeforest Theme Support Dante Single Post Page Margins

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #47325
    lawrence
    Member
    Post count: 49

    I would like to have no space between the fancy header and my content on my single posts page.

    I found this in the style page, how can I get my posts page to use this.

    .inner-page-wrap.no-top-spacing {
    margin-top: 0;

    I tried using .inner-page-wrap.no-top-spacing in the extra page class field when entering the post but that does not work.

    I also found that altering the top margin here:

    .inner-page-wrap {
    margin-top: 50px;
    margin-bottom: 60px;
    min-height: 500px;
    }

    Works, but it changes the top margin on all pages. I only want to change the margins on the posts pages.

    How can I do this?

    Thanks

    L

    #47881
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,
    WordPress adds the page id in the body class by default so in your case you can do like this
    Replace the Question mark with page id.

    .page-id-???.inner-page-wrap {
    margin-top: 50px;
    margin-bottom: 60px;
    min-height: 500px;
    }

    See Screenshot for reference http://prntscr.com/2rhi1e . You can view the page id by Right-Clicking in The Chrome Browser and Choosing Inspect Element from the menu.

    All the Best,
    Tahir

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register