• Resolved adamorn

    (@adamorn)


    Team, I am a newbie on wordpress so please be gentle.

    I am trying to remove the white space between “News” and the “news item” that appears with a dark blue background, near the middle of the page.

    I would like to do this directly in the advanced-add CSS area if possible as it is only a one time thing (that I know of).

    My research has pointed to adding code like the following in that area, but alas, it is not working for my issue. My “new item” content is a unordered list within a block and the News header is an “h2”. Between the two is a short white line that I want to remove, or color the same as the background as a hack. It feels like it should be easy, but I haven’t solved it yet.

    The code that I saw recommended was to add this to the “additional css” field. I’ve added this directly to each item and it did not work. I also tried adding it in appearance-additional CSS, then tried to reference from my blocks, but alas that did not work either. What am I missing here?

    .no-vertical-margin { margin-bottom: 0 !important; margin-top: 0 !important; }

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    ul.wp-block-latest-posts__list.is-grid.columns-2.has-link-color.aligncenter.has-text-color.has-white-color.has-background.\.no-vertical-margin.wp-block-latest-posts.wp-elements-372ebb889cce62470fcd2fefe1c3e369 {
    padding-top: 0;
    margin-top: 0;
    }

    To add or override CSS: use the “Additional CSS” option in the customizer.  https://codex.www.ads-software.com/CSS#Custom_CSS_in_WordPress or at [site]/wp-admin/customize.php if you don’t have that menu option.

    Use the Chrome Developer Tools or Firefox Developer Tools to help you see and test changes to your CSS.

    Thread Starter adamorn

    (@adamorn)

    That worked, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.