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

  • Thread starter Thread starter Deleted member 91401
  • Start date Start date
D

Deleted member 91401

Guest
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?
 
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;
    }
}
 
Back
Top Bottom