• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Random media block - sectionMain nested inside section

Moddis

Active member
#1
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
#2
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.
 

Moddis

Active member
#3
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.