XF 2.2 Help page CSS extra.less - change h3 title color

philmckrackon

Active member
I would like to change the h3 title color only on the template help_index without affect other templates. I can do this my using html in the title field but the html code is displayed in the tab - example:
Title: <font color ="brown">Insert a Video as an attachment.</font>
tttt1.JPG

Page inspect shows:
hlp1.JPG
and
hlp2.JPG

I tried editing help_index line <h3 class="block-textHeader"> to <h3 class="block-textHeader-custom-brown"> an tried both these in extra.less but I must have the format wrong.
Code:
.block-textHeader-custom-brown
{
color: brown
}


.block-row block-row--separated.block-textHeader-custom-brown
{
color: brown
}
I pretty sure I need to incorperate a:link, a:visited, a:hover, and a:active but not sure.

Any thoughts or ideas?
Thanks,
 
Last edited:
Solution
Thanks again, I'm learnin... :)

The CSS you supplied does only affect the link color but it changes ALL on the page. Can it be limited to just the DIV blocks below?

You could probably do something like this:

Less:
[data-template="help_index"],
[data-template="help_page"]
{
    .p-body-main a
    {
        color: #443e32;
        text-decoration: none;
    }
}
Try this:

Code:
[CODE][data-template="help_index"] .p-title {
    color: blue;
}

Code:
[data-template="help_page"] .p-title {

    color: blue;

}




Change the color to what you want, either by name, hex or RGB. you may have to add both to your extra.less template
 
Thanks again, I'm learnin... :)

The CSS you supplied does only affect the link color but it changes ALL on the page. Can it be limited to just the DIV blocks below?

You could probably do something like this:

Less:
[data-template="help_index"],
[data-template="help_page"]
{
    .p-body-main a
    {
        color: #443e32;
        text-decoration: none;
    }
}
 
Last edited:
Solution
Top Bottom