Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1485739

    I’ve included a page in Private Content that shows that the code block element needs a wider margin or padding between it and the text block containing the H2 heading.

    Can you assist please?

    #1485753

    Hey John,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .page-id-4128 #after_section_1 {
    	 padding-top: 50px;
    }

    adjust to suit.

    Best regards,
    Mike

    #1485764

    That doesn’t seem to work.
    I cleared the caches, tried adding !important, tried adding it to the Theme File Editor as well as the Quick CSS.

    #1485773

    Hi,
    The ID “#after_section_1” is now missing, perhaps you updated the page? So I added the ID “#add_50_px_pading” to the element:
    Screen Shot 2025 06 22 at 7.43.40 AM
    and this css:

    .page-id-4128 #add_50_px_pading  {
             padding-top: 50px;
    }

    Now it is working, please clear your browser cache and check.

    Best regards,
    Mike

    #1485815

    Thanks Mike. Is there a more generic way to solve this issue in future when I have a code block followed by a text block?

    #1485819

    Hi,

    You can try this css code to adjust the top spacing of any text block element next to a code block.

    .avia_codeblock_section + .av_textblock_section {
        padding-top: 50px;
    }

    Best regards,
    Ismael

    #1485866

    I entered that CSS in Quick CSS, purged the WP caches, cleared the browser caches, created a new page fo testing but it isn’t working for me.

    The Page is in the Private Content block.

    #1485876

    Hi,

    The code will only work if the Text Block is placed directly next to or below the Code Block element. (screenshot S1)

    It should work on the previous page. (screenshot S2)

    Best regards,
    Ismael

    #1485919

    Are those screenshots that you just posted publicly visible? If so, I’d appreciate it if you could remove them please Ismael.

    #1485920

    Hi,

    We moved the screenshots in the private field.

    Best regards,
    Ismael

    #1486065

    All good. Thank you.

    #1486071

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Padding between a code block and text block’ is closed to new replies.