Title: Copy Link to Heading &#8211; Easily add Anchor links for Headings
Author: Jose Varghese
Published: <strong>January 17, 2025</strong>
Last modified: May 22, 2026

---

Search plugins

![](https://ps.w.org/copy-link-to-heading/assets/banner-772x250.png?rev=3224585)

![](https://ps.w.org/copy-link-to-heading/assets/icon-256x256.png?rev=3224585)

# Copy Link to Heading – Easily add Anchor links for Headings

 By [Jose Varghese](https://profiles.wordpress.org/josevarghese/)

[Download](https://downloads.wordpress.org/plugin/copy-link-to-heading.2.0.6.zip)

 * [Details](https://wordpress.org/plugins/copy-link-to-heading/#description)
 * [Reviews](https://wordpress.org/plugins/copy-link-to-heading/#reviews)
 *  [Installation](https://wordpress.org/plugins/copy-link-to-heading/#installation)
 * [Development](https://wordpress.org/plugins/copy-link-to-heading/#developers)

 [Support](https://wordpress.org/support/plugin/copy-link-to-heading/)

## Description

Have you ever wanted to quickly copy a link to a specific heading section of your
content for bookmarking, sharing with friends or colleagues, or jumping straight
to a heading without scrolling through the entire page? Then, “Copy Link to Heading”
plugin makes it effortless!

The Copy Link to Heading plugin automatically adds a small, unobtrusive link icon
next to the headings in your posts, pages, or custom post types. With just one click,
users can copy a direct anchor link to the heading section for:

 * Bookmarking the heading so they can continue reading later without scrolling.
 * Having anchor links will helps in your SEO.
 * You can easily share specific heading content sections with friends and colleagues
   or on social media.
 * Navigate quickly to a specific part of a long article or documentation.
 * Enhancing accessibility by enabling deep linking to specific sections.
 * Supports screen readers with proper `aria-label` attributes, keyboard navigation(
   Enter/Space keys), and `aria-live` region announcements when a link is copied.

The plugin is designed to be lightweight and user-friendly. It is perfect for blogs,
documentation sites, WooCommerce stores, and any site with long-form content.

**Key Features of Copy Link to Heading:**
 – Copy Link to Heading plugin, adds a
link icon next to the selected heading levels (H2, H3, etc.) based on your preferences
selected within the settings page. – We support posts, pages, and custom content
post types. – Easily customizable heading levels to display the link icon. – Compatible
with WooCommerce product pages and other custom post types. – Generates anchor links,
section links, and deep links for improved navigation with your pages. – Very simple
settings page for quick configuration. – Lightweight and optimized for performance.–
Option to always show the copy link to the heading icon for mobile devices. – Option
to add a tooltip for the link icon or to choose the browser alert for copying the
link of the heading. – The link icon effortlessly scales with the heading text size
using relative sizing. – Option to enable smooth scrolling when navigating to anchor
links on the page. – Option to briefly highlight the target heading when a visitor
arrives via an anchor link, with a customizable highlight color.

### How does the anchor links are generated?

 * When the page loads, the plugin automatically generates anchor links for headings
   on the frontend. No changes are required in the WordPress editor or post content.
 * If a heading already has an anchor link, the plugin uses the existing anchor 
   link URL for the “copy link” functionality.
 * Even if the heading text is modified later, the plugin dynamically generates 
   the anchor link when the page is loaded on the front end based on the heading
   text. That means any changes made in the editor will not cause issues with link
   functionality.
 * This seamless approach ensures the plugin adapts to changes in content while 
   maintaining reliable and accurate linking.
 * So, install the “Copy Link to Heading” plugin on your WordPress website and configure
   the settings based on your preference to decide which content types and heading
   levels you want to show the copy link to the heading icon for.
 * Our plugin will do everything on the front end out of the box without any hassle.

**Use Cases with the Page Jumps?:**
 – The **copy links to specific headings** using
a heading URL generator created by us, which makes it easy to share with others 
or reference in emails or social media. And when clicked via the link, the page 
will jump to the specific heading. – You can **bookmark the heading sections of 
long articles or documentation for easy navigation**. Once you click the link, the
heading will open using the anchor links. – **Enable deep linking to improve user
experience** on content-heavy websites. – **Help readers and collaborators** quickly
access key sections of your content with a bookmark link generator.

Whether managing a blog, a technical documentation site, or a WooCommerce store,
this plugin ensures your audience can easily navigate and share content.

## Screenshots

[⌊Frontend Example: A link icon is displayed next to a heading.⌉⌊Frontend Example:
A link icon is displayed next to a heading.⌉[

**Frontend Example:** A link icon is displayed next to a heading.

[⌊Settings Page: Configure which heading levels and content types should display
the link icon.⌉⌊Settings Page: Configure which heading levels and content types 
should display the link icon.⌉[

**Settings Page:** Configure which heading levels and content types should display
the link icon.

## Installation

 1. Download and install the plugin from the WordPress Plugin Directory or upload the`
    copy-link-to-heading` folder to your `/wp-content/plugins/` directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Go to “Settings” -> “Copy Link to Heading” to configure the plugin.
 4. Select the heading levels and content types where you want the link icon to appear.
 5. Select other settings based on your preference.
 6. Save your settings and enjoy enhanced content anchor link navigation!

## FAQ

### How do I enable the link icons for specific content types?

Visit “Settings” -> “Copy Link to Heading” in your WordPress dashboard. You can 
select which heading levels and content types (e.g., posts, pages, custom post types)
will display the link icon.

### Can I add custom CSS classes to detect headings within specific sections?

Yes! By default, the plugin looks for headings inside `.entry-content`, `.post-content`,`.
page-content` and `.dynamic-entry-content`. If your theme uses different classes,
you can add them using the `clth_content_selectors` filter in your theme’s `functions.
php`:

    ```
    add_filter( 'clth_content_selectors', function( $selectors ) {
        return $selectors . ', .my-custom-content-wrapper';
    } );
    ```

### Can I customize the heading levels that display the icon?

Yes! You can choose which heading levels (H1 to H6) to include from the settings
page. By default, the plugin excludes H1, usually reserved for the main title. The
page title won’t be shown with a link as the link is same as the page.

### Does the plugin support custom post types, such as WooCommerce products?

Absolutely! The plugin is compatible with any public custom post type, including
WooCommerce product pages.

### Will the link icons affect my website’s performance?

No, the plugin is lightweight and optimized for performance. It enqueues only the
necessary scripts and styles on pages where it’s needed.

### I want some features and would like to contribute to this plugin?

We welcome contributions! Feel free to create a pull request or submit a feature
request on your mind. For bug reports and feature requests, please visit the issues
section.

### The plugin is not working on my website, what will I do?

First, ensure that your website has SSL (https://) and you have cleared the cachings.
If the issue persists when checking via an iconginto window after clearing the cache,
perform a conflict check. If the problem still remains, [please open a new topic clearly explaining the issue and how we can improve it](https://wordpress.org/support/plugin/copy-link-to-heading/#new-topic-0).

As this is a small plugin, your active contributions in reporting bugs and suggesting
features are essential to make it better.

### How can I contribute to this awesome plugin?

You can contribute to this Web Share plugin via our [GitHub repository](https://github.com/josevarghese/copy-link-to-heading/)

### How do I report bugs and new feature suggestions?

You can report the bugs and request new features you need to see at our [GitHub repository page](https://github.com/josevarghese/copy-link-to-heading/issues)

## Reviews

![](https://secure.gravatar.com/avatar/d611137ceeb2867c1753a73d3b1dfa27965f347822df933527aa60b7764f51d4?
s=60&d=retro&r=g)

### 󠀁[Useful Plugin, Responsive Developer](https://wordpress.org/support/topic/useful-plugin-responsive-developer/)󠁿

 [Joe Alberts](https://profiles.wordpress.org/joe-alberts/) March 18, 2026 1 reply

I’ve found this to be a very helpful plugin, particularly for long-form, technical
content. Jose was very responsive to my suggestions, and it was a pleasure discussing
them with him. Thanks!

![](https://secure.gravatar.com/avatar/94e13b5bf9584492a07f1d6ff43310c55a6b8e23384caf7d15e3896dfe24fa80?
s=60&d=retro&r=g)

### 󠀁[Useful plugin](https://wordpress.org/support/topic/useful-plugin-1077/)󠁿

 [Sid](https://profiles.wordpress.org/isildur00/) February 24, 2025 1 reply

Great free plugin. It does what it says and it helped me with my work.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/)

## Contributors & Developers

“Copy Link to Heading – Easily add Anchor links for Headings” is open source software.
The following people have contributed to this plugin.

Contributors

 *   [ Jose Varghese ](https://profiles.wordpress.org/josevarghese/)

[Translate “Copy Link to Heading – Easily add Anchor links for Headings” into your language.](https://translate.wordpress.org/projects/wp-plugins/copy-link-to-heading)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/copy-link-to-heading/),
check out the [SVN repository](https://plugins.svn.wordpress.org/copy-link-to-heading/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/copy-link-to-heading/)
by [RSS](https://plugins.trac.wordpress.org/log/copy-link-to-heading/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.6

Released on 8 May 2026
 * Fix: Admin notice review icon flashing at a large size
on page load due to CSS being enqueued after wp_head() had already fired.

#### 2.0.5

Released on 8 May 2026
 * Fix: Set default icon color to #0a0a0a so the color picker
on the settings page shows the correct default value.

#### 2.0.4

Released on 7 May 2026
 * Minor Tweaks to the stylings

#### 2.0.3

Released on 6 May 2026
 * Beaver Builder support First phase added.

#### 2.0.2

Released on 28 March 2026
 * New: Added smooth scroll option — enable smooth scrolling
when navigating to anchor links on the page. * New: Added heading highlight option—
briefly highlights the target heading when a visitor arrives via an anchor link,
with a customizable highlight color.

#### 2.0.1

Released on 17 March 2026
 * Fix: Minification of CSS and JS files missed some changes
added to the non-minified code. Thanks to joe-alberts for reporting this.

#### 2.0

Released on 3 March 2026

 * New: Added multiple icon styles (Standard, Hash, Paperclip, Copy).
 * New: Added custom icon upload support.
 * New: Added option to change icon color.
 * New: Improved the settings UI for icon customization.
 * New: Added an option to customize the icon thickness (Default: Bold).
 * Added support for dynamic content heading detections
 * New: Added an option to minify CSS and JS files for better performance.
 * New: Supports screen readers with proper `aria-label` attributes, keyboard navigation(
   Enter/Space keys), and `aria-live` regions for copy announcements.

#### 1.6

Released on 16 July 2025
 – Minor enhancement tweaks

#### 1.5

Released on 4 April 2025
 New features: – Icon position option: We have added a 
new setting that allows users to choose whether the copy link icon appears before
or after the heading. If “Before Heading” is selected, the icon is inserted at the
beginning of the heading with a small margin to separate it from the heading text.–
Desktop Icon display option: Introduced a new setting to control whether the icon
should be defaulted on desktop devices. By default, the desktop icon continues to
appear when hovered, but users can opt to always show it.

#### 1.4

Released on 28 February 2025
 Enhancements: – Improved slug sanitization to prevent
trailing hyphens in anchor links when the alphanumeric characters are there in the
heading – Removed admin notices from the plugin settings page to avoid interference
from other plugins.

#### 1.3

Released on 26 January 2025
 New features: – Added settings to customize the tooltip
text based on your preferences. – By default, the copy link feature is now enabled
for posts, while pages are unselected. You can enable it for pages based on your
preference. – Enhanced the settings page for a better user experience.

#### 1.2

Released on 22 January 2025
 New features: – Added a new option in the Settings 
page to show the tooltip for the icon to copy and switch to the browser alert option.
By default, the browser alert is replaced with a tooltip to help users understand
the feature more effectively. However, you can switch this off on the settings page.

#### 1.1

New features:
 – A new option was added to the settings page to control the visibility
of the copy link icon on mobile devices. – When enabled (default), the icon is always
visible on mobile for better usability on touchscreens. – When disabled, the icon
behaves like on desktops, appearing only on hover. – Improvements to the settings
page

#### 1.0

 * Initial release: Adds link icons next to headings for easy sharing and navigation.
 * Added: Ability to customize heading levels to display the link icon.
 * Added: Compatibility with WooCommerce and other custom post types.

## Meta

 *  Version **2.0.6**
 *  Last updated **3 weeks ago**
 *  Active installations **40+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.0 or higher **
 * Tags
 * [anchor links](https://wordpress.org/plugins/tags/anchor-links/)[Content Navigation](https://wordpress.org/plugins/tags/content-navigation/)
   [copy link](https://wordpress.org/plugins/tags/copy-link/)[deep linking](https://wordpress.org/plugins/tags/deep-linking/)
   [headings](https://wordpress.org/plugins/tags/headings/)
 *  [Advanced View](https://wordpress.org/plugins/copy-link-to-heading/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/copy-link-to-heading/reviews/)

## Contributors

 *   [ Jose Varghese ](https://profiles.wordpress.org/josevarghese/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/copy-link-to-heading/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://superwebshare.com/zamy)