XF 2.2 Change color of hover menu in help page

Joan1211

Member
Hello,
I am looking at changing the color of the menu on the left, of the Help pages when I hover it.
I configured a brown color for the links in the ACP, but it doesn't fit this specific page.

1.webp


Thanks !
 
Solution
Add this to the extra.less template.

For the index page:
Less:
[data-template="help_index"]
{
    .blockLink:hover
    {
        color: orange;
        background: green;
    }
}

For individual pages:
Less:
[data-template="help_page"]
{
    .blockLink:hover
    {
        color: orange;
        background: green;
    }
}

For any template with help in the name:
Less:
[data-template*="help"]
{
    .blockLink:hover
    {
        color: orange;
        background: green;
    }
}

Feel free to change the colours ;)
Add this to the extra.less template.

For the index page:
Less:
[data-template="help_index"]
{
    .blockLink:hover
    {
        color: orange;
        background: green;
    }
}

For individual pages:
Less:
[data-template="help_page"]
{
    .blockLink:hover
    {
        color: orange;
        background: green;
    }
}

For any template with help in the name:
Less:
[data-template*="help"]
{
    .blockLink:hover
    {
        color: orange;
        background: green;
    }
}

Feel free to change the colours ;)
 
Solution
I had to use
CSS:
[data-template="help_page"]
instead of
CSS:
[data-template="help_index"]

but it worked.
Thanks!

edit: @Brogan if you edit your post with page instead of index, i can mark your post as the solution.

edit2: What is a blocklink? I might consider to extend this code to the entire website and not just to the help page.
Where can I find other blocklinks?
 
Last edited:
I mean, in which part of the website there is another blocklink.
Currently I only see it in the help pages.

You say "all blocklink" will be CSSed, but where are there?
 
Top Bottom