XF 2.1 How to increase padding on help page content without affecting all block rows throughout the site?

Bimble

Active member
Licensed customer
The padding for the content of the help pages uses class="block-body block-row" and whilst we can modify the padding for block-row it applies to all such instances throughout the site.

What is the best way to modify the padding for just the help pages content?

Add a new class to the help_page template?

Rich (BB code):
<xf:else />
    <div class="block">
        <div class="block-container">
            <div class="block-body block-row help-padding">
                {$templateHtml|raw}
            </div>
        </div>
    </div>
</xf:if>
 
Hello,

You can use something like this in your EXTRA.less :
Code:
[data-template="help_page"] {
    .block-row {
        Your CSS here
    }
}

Regards, SyTry
 
Back
Top Bottom