Support

Account

Home Forums Feedback Relationship Field in Sidebar (css attached)

Relationship Field in Sidebar (css attached)

  • I needed a relationship field in the sidebar and of course it doesn’t fit.

    Here’s my SASS CSS for my admin.css that overrides the default.

    // sidebar acf relationship field
    #side-sortables .acf_relationship {
      .relationship_left,
      .relationship_right {
        width: 100%;
        float: none;
      }
      .relationship_right {
        ul {
          margin-left: 0;
        }
        &:before {
          content: "⬇";
          display: block;
          font-size: 16px;
          text-align: center;
          padding: .5em 0;
        }
      }
    }

    Works well for me, but untested in anything but Google Chrome. I get to control the admin user’s browser. 🙂

    See attached screenshot.

    Thanks a million for ACF!

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

The topic ‘Relationship Field in Sidebar (css attached)’ is closed to new replies.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.