My overall problem is that Class and ID attributes are not available on most elements in HS. (Insert rant here)
My solution is to create a new section that has class and id attributes available to the user to edit. I have done this with custom modules but I'm having trouble with sections. Has anyone else had trouble doing this?
Sections don't support IDs/classes. Two workarounds you can try:
Develop section-as-module with custom ID and class fields.
Develop a "Settings" module that appends custom ID and class values to the section it's added into.
We use approach #2 in all of our HubSpot themes.
Glad I could help. Solving HubSpot puzzles is what we do. Ernesto // GiantFocal Found this answer helpful? Marking it as the solution helps both the community and me - thanks in advance!
If you have a moment, could you elaborate on Option 2? I'm just getting started with HubL and am not familiar with how to append class and ID to a parent.
Sections don't support IDs/classes. Two workarounds you can try:
Develop section-as-module with custom ID and class fields.
Develop a "Settings" module that appends custom ID and class values to the section it's added into.
We use approach #2 in all of our HubSpot themes.
Glad I could help. Solving HubSpot puzzles is what we do. Ernesto // GiantFocal Found this answer helpful? Marking it as the solution helps both the community and me - thanks in advance!