Fixed Random media block - sectionMain nested inside section


Active member
When displaying the media block on the forum home page, can you remove the the .section style around the .sectionMain?

I found that in most of xenForo, the .section class only goes around .secondaryContent and it's a little out of place when applied as the parent of .sectionMain. Also, applying the .section class as the parent style does not do anything in the default style anyway so it should not hurt anyone if its removed.

Chris D

XenForo developer
Staff member
It was added for more consistent styling of the block when it is part of the sidebar. With that in mind, I've removed the section class unless the block is being used in the sidebar.


Active member
Awesome, thanks!

I did see it screw up the sidebar styling when I manually removed the .section but I didn't do much about that since the sidebar widget was not in use.