Introduction
I tried to keep the script easy to use but that tradeoff means there's not a lot of flexibility. If you'd rather have more control, than you can use this advanced add-on. This will let you specify the location of each element/status icon individually. Thus you could have attack and defense elements next to each other on the same row rather than stacked vertically. Or you could intermingle elements and statuses.
Screenshot
How to use
At the top of the script is a section marked "CUSTOMIZATION". You can edit this portion to change which elements and which states show up on the equip page. For each element/state, you need to specify it's "type" and it's database ID. The type is one of four values: ELEMENT_ATK, ELEMENT_DEF, STATUS_ATK, or STATUS_DEF. There are comments (ROW 1, ICON 1, etc) to help you with the placement. You can have up to 8 icons per row. You can delete unused icons if you don't want that many.
Script
Get it here