1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Custom BB Codes - <hr> tag

Discussion in 'XenForo Questions and Support' started by fEaRz, Mar 14, 2014.

  1. fEaRz

    fEaRz Member


    How do I create a <hr> tag with the core Custom BB Codes.

  2. Brogan

    Brogan XenForo Moderator Staff Member

    It's not possible to create or use 'empty' custom bb codes.
    So {text} is always required.
    fEaRz likes this.
  3. cclaerhout

    cclaerhout Well-Known Member

    If you really need it, you can create it with this addon, it's working.
    fEaRz likes this.
  4. fEaRz

    fEaRz Member

  5. Moddis

    Moddis Active Member

    One way I tried replicating the HR is using something like this:

    BB Code Tag/Title: hr
    For HTML Replacement: <span class="cusHr">{text}</span>
    In CSS:
    .cusHr {
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid #000000;

    So if I really need to use a line break after some text I just enclose all that text in a [HR]{text}[/HR] and it has a nice little line under it.
    Sentenza likes this.
  6. Sentenza

    Sentenza Member

    How does work the <hr> tag with your addon?
  7. cclaerhout

    cclaerhout Well-Known Member

    To use: [hr][/hr]
    Edit: the method of Moddis is good too.
    Last edited: Mar 23, 2014

Share This Page