• Resolved nicolayka

    (@nicolayka)


    Good afternoon. What needs to be changed in the code so that all snippets are on the same line?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nicolayka

    (@nicolayka)

    Can someone help me?

    Plugin Author DraftPress Team

    (@draftpress)

    Hi,

    To achieve this, you’ll need to remove any line breaks or newline characters that separate the individual snippets in your code.

    Here’s a simple example in HTML:

    Original code with line breaks:

    <div>
    <p>This is a paragraph.</p>
    </div>
    <span>This is a span.</span>

    Code with snippets on the same line:

    <div><p>This is a paragraph.</p></div> <span>This is a span.</span>

    Thread Starter nicolayka

    (@nicolayka)

    How do you imagine it? I don’t have one counter, but several

    • This reply was modified 8 months, 3 weeks ago by nicolayka.
    Plugin Author DraftPress Team

    (@draftpress)

    We’re not sure what your code is trying to do or what it looks like so it’s difficult to provide guidance.

    However, you could just combine them into 1 snippet if they’re meant to show in same spot. Which it sounds like that’s what you are trying to do. Then, multiple snippets isn’t necessary. Just use 1.

    Other than that, we can’t say much without reviewing a lot more details like the snippet code, purpose, and end result you’re seeking.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Snippets in one line’ is closed to new replies.