I'd like to place a custom icon on either side of my section headings similar to this hastily-made mockup.
I could just place them as images, but every time that subheading moves, I'll have to move each of them manually. Is there a way to place an image into the document flow so that they would stay attached to the subheading? Ideally this would be something I could set up as a paragraph style and use over and over, but I'm not going to dream that big just yet.\
Thanks very much for any advice.
You can copy the graphic, switch to the type tool, and paste the graphic into the text line. - This creates an Anchored object that will move with the text.
You can add text wrap around the graphic to control spacing. Use baseline shift in the type pallet to move it up or down.
Once you get it set-up the way you like, you can just keep copy-and-pasting it, but there is no way to style or find/replace it in automatically.
Edited: I take that back, you CAN find/replace with a graphic.
Enter what you want to replace in the Find what: field.
Click on the @ symbol next to the Change to: field.
Under Other choose Clipboard Contents Formatted.
Do the replace (Change All).
So, when your text flows in, if you could have a special character added before and after your Subhead (maybe with a data merge), you could then Find/Change all instances of that special character. â€” Just make sure you use a character that is not used anywhere else.
You could also set-up the Sub-head with the graphics. Then save the whole piece together as a library item. When you want to re-use the piece, drag it out of the library, and manually change the text for the Subhead. â€” a little cumbersome