« Web, HTML, Tech Forum

Does anybody know how to hide specific boxes of your interests section?

For example, keeping the general box and getting rid of the others. I havent been able to find a code that just did this.


Thank you!


Report Topic

1 Reply

Reply by Gluma

posted

<style>

.table-section:nth-last-child(2) .details-table tr:nth-child(insert number here){display:none;}

</style>

Each interest section is given a number. The first section (General) should be 1 and from there, the number goes up for each section below General (ex: Music should be 2, next section should be 3, etc.). Idk if there’s a more easier way to find the number but that’s how I do it (or just use trial and error lol). I don’t think you added any new sections in your profile so you should just repeat the deletion code for every number up to 6 except for 1 if you wanted to just keep General. Here:

<style>

.table-section:nth-last-child(2) .details-table tr:nth-child(2){display:none;}

.table-section:nth-last-child(2) .details-table tr:nth-child(3){display:none;}

.table-section:nth-last-child(2) .details-table tr:nth-child(4){display:none;} 

.table-section:nth-last-child(2) .details-table tr:nth-child(5){display:none;}

.table-section:nth-last-child(2) .details-table tr:nth-child(6){display:none;}

</style>

You can put this code anywhere, I think, but I put mine in the first section (About Me). Just a heads up: the section numbers gets a bit jumbled up when you add new sections, however I think they still go from top to bottom (when normally viewing your profile)


Permalink Report Reply