Setting the Display Settings

In addition to enabling headlines, you can adjust their display settings and appearance.

circle-info

To exclude a headline or a headline in a container, use the has-headline-exclude class.

Generate Missing IDs

Not all headlines have an ID attribute, commonly known as an anchor attribute. You can toggle this option to allow Highlight and Share to generate the IDs for you.

Since the plugin runs its content filter late, other plugins should have had a chance to add their own ID attributes to the headlines. This makes Highlight and Share compatible with many Table of Contents plugins out of the box.

Generate Missing IDs Option

However, if you want auto-generation and don't have a helper plugin, you can force the plugin to generate missing IDs.

circle-info

Use this in conjunction with the has-headline-exclude class to exclude headlines or headlines in wrappers.

You can make the link icon always visible on the frontend by toggling this option. By default, the link icon is only shown on headline focus or hover.

When visible, the link icons are more prominent.

Link Icons Shown by Default

Excluding Headline Levels

You can exclude certain headline levels from being selected for sharing. You can select from all six heading levels.

Select Headline Levels Worth Sharing

Enabling on Post Types

You can enable headlines on certain post types. By default, they are only enabled for posts.

Post Type Settings for Headline Sharing

You can auto-enable existing post types in this section.

Even if you have headline sharing disabled for a post type, you can still enable it individually by editing the post and enabling headline sharing in Highlight and Share's sidebar settings.

Sidebar Settings on a Post or Page When Editing

Setting Exclusion Selectors

You can set CSS selectors to automatically exclude certain headlines. For now, this only works with CSS classes.

Exclusion Selectors Option

Last updated

Was this helpful?