# Alternative Ways to Target RM Objects other than data\_id?

**URL:** <https://forum.readymag.com/t/alternative-ways-to-target-rm-objects-other-than-data-id/5775>\
**Category:** Custom code\
**Created:** [December 18, 2025, 7:03pm UTC](https://forum.readymag.com/t/alternative-ways-to-target-rm-objects-other-than-data-id/5775 "2025-12-18T19:03:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Xie](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/david_xie/32/3911_2.png) [@David\_Xie](https://forum.readymag.com/u/David_Xie)\
**Post date:** [December 18, 2025, 7:03pm UTC](https://forum.readymag.com/t/alternative-ways-to-target-rm-objects-other-than-data-id/5775/1 "2025-12-18T19:03:22Z")

</div>

I am looking to apply custom code (applying the difference blending mode) to a navbar that is a group of multiple text widgets.

However, when I bring the preset navbar in other pages, each text widget within the navbar group are all assigned new data\_id’s, meaning I would have to manually target each one within the custom code css. The nav bar is 5 items long, and my portfolio will have lots of different pages for my projects, meaning 100+ lines of css just targeting these individual data\_id’s for the nav bar. Not great practice!

Is there other ways to target the widgets in a more efficient manner? I’ve tried applying the css to the group that contains all the widgets, or targeting of the existing classes that make up the text widgets but to no avail.

Thank you!
