Three-dimensionally (3D) ordered macroporous materials combine interesting structural and optical properties. Accessible and economic fabrication is essential to fully explore the unique possibilities these materials present. A common method to fabricate 3D ordered macroporous materials is by self-assembling colloids, resulting in so-called opals. A templating strategy is then often used to introduce additional functionality inside the porous structure, giving rise to inverse opals. In this work, we developed an easy and versatile method to fabricate highly uniform polymer inverse opals without overlayers. Briefly, our approach consists of sandwiching a resin melt between two opal templates, forcing all material inside or between the macroporous structures. The opal voids are fully filled and the superfluous melt material is extruded before curing the resin. Finally, the opal templates are removed by chemical etching. The resulting structures are freestanding 3D macroporous films with large-area uniformity, displaying strong photonic properties due to their structural order. Additionally, many applications require specific optical functionalities. The versatility of our templating method is uniquely suited for this purpose as it allows doping of the melt before infiltration. Therefore, we can incorporate a large variety of optical functions in the inverse opals using a single approach We believe this method will help the systematic investigation and improvement of existing effects in these structures, while providing a platform for the discovery and demonstration of novel effects. As this method combines 3D ordered macroporous materials with linear and nonlinear optical materials, it is even possible to tune optical interactions, which could be technologically relevant for OLEDs, solar cells, lasers, electro-optical modulators and optical switches.