• Resolved truebusinessman

    (@truebusinessman)


    Hello!

    Please, sir, let me 2 questions.

    1) Question about CSS styling for blocks. I am reading the plugin documentation. Here you write, that I need to create separate .css files for each block: https://github.com/getblocklab/block-lab/wiki/5.-Styling-custom-blocks

    If I add classes to blocks (class = “”). Can I style blocks through these classes in a main style.css file?

    I am using a GeneratePress child theme.

    2) Question about ordered lists into textarea. I created a block and everything works fine.

    But tell me, please. How can I add ordered lists into textarea?

    Does it support ol>li or ul>li? In my case, everything is formatted as paragraphs (<p> tag).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @truebusinessman,
    Thanks a lot for using Block Lab.

    1.

    If I add classes to blocks (class = “”). Can I style blocks through these classes in a main style.css file?

    Sure, you can definitely still style the blocks in your main style.css file. Using the block stylesheet like /blocks/css/block-{block name}.css is optional.

    2.

    But tell me, please. How can I add ordered lists into textarea?

    Does it support ol>li or ul>li? In my case, everything is formatted as paragraphs (<p> tag).

    Yes, you can enter the markup into a textarea field, and it will support both ul li and ol li.

    For example, you could enter this in a textarea field:

    <ol>
    <li>Here is the first li</li>
    <li>Here is the second li</li>
    </ol>
    
    • This reply was modified 5 years, 7 months ago by Ryan Kienstra.
    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Marking As Resolved

    If it’s alright, I’m marking this as ‘Resolved.’ Feel free to follow up here if you have more questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2 questions about the plugin’ is closed to new replies.