XF 2.1 Remove .p-title & .p-body-header from forum home page?

sentimental

Active member
This is how my site currently looks on the forum homepage:

aat.png


I am making style changes to the p-title and p-body-header so that when browsing forum sections it looks like this:
3sZ.png


But this is causing the styling issue on the forum homepage, how to stop this from happening? I can't find the specific template for whichever one manages the code for nodes/forum list. (i've looked in forum_list, nothing I changed in there helped).

Any ideas?
 

nicodak

Well-known member
Hello, if you to make change only in certain template you have to use code like this
Less:
[data-template="name_of_template"] {
    .p-body-header {
        margin-top: 0;
    }
}
For multiple template you can write code like this
Less:
[data-template="name_of_template"],
[data-template="name_of_template_B"],
[data-template="name_of_template_C"] {
    .p-body-header {
        margin-top: 0;
    }
}
 
Top