HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Signature Spacing

Sorry if this has a really obvious answer, but is there a way to make the signature single spaced? Thanks!

Comments

  • @skatedebate: What do you mean by single spaced. To display only one line of text. CSS height and overflow could help you to mimic that behaviour.

    More beautiful could be a limited input field.

    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
  • Thanks phreak-

    I don't necessarily want to limit a user to a single line, but they don't want extra space in between each line- here's an example:


  • Adding to Kaspars idea you can also trim BRs with CSS display: none.

    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
  • KasparKaspar ✭✭✭
    edited March 2020

    In vanilla folder /plugins/signatures/design/signature.css change


    .UserSignature {
      border-top: 1px solid #ddd;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      padding-top: 4px;
      font-size: 11px;
      margin-top: 10px;
    }
    


    to


    .UserSignature {
      border-top: 1px solid #ddd;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      padding-top: 4px;
      font-size: 11px;
      margin-top: 10px;
      line-height: 1;
    }
    


    This changes how signatures are shown when posting.


    Your screenshot show when entering the signature in profile settings - how that is shown is controlled by your theme.

    Use your browser console/devtools (for Chrome it is opened with F12) to find which element your theme uses - but I'd assume that would affect other input fields aswell.

  • Thank you so much!!

Sign In or Register to comment.