{"id":282869,"date":"2026-02-19T17:58:17","date_gmt":"2026-02-19T17:58:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/add-an-atty\/"},"modified":"2026-02-19T17:58:14","modified_gmt":"2026-02-19T17:58:14","slug":"steves-attributes","status":"publish","type":"plugin","link":"https:\/\/zul.wordpress.org\/plugins\/steves-attributes\/","author":23385172,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.9.4","requires":"","requires_php":"","requires_plugins":null,"header_name":"Steve's Attributes","header_author":"Steve Gibbs","header_description":"Adds a custom attributes field to links in Image, Button, and Paragraph blocks in Gutenberg.","assets_banners_color":"","last_updated":"2026-02-19 17:58:14","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/stevegibbs.info","header_plugin_uri":"https:\/\/wp.stevegibbs.info\/steves-attributes","header_author_uri":"https:\/\/stevegibbs.info","rating":0,"author_block_rating":0,"active_installs":0,"downloads":149,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"stevegibbs","date":"2026-02-19 17:58:14"}},"upgrade_notice":{"1.1.0":"<p>Expanded block support to include List Item, Heading, File, and Navigation Link blocks. Improved attribute field visibility.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[9032,4121,250433,148076,175],"plugin_category":[],"plugin_contributors":[254707],"plugin_business_model":[],"class_list":["post-282869","plugin","type-plugin","status-publish","hentry","plugin_tags-attributes","plugin_tags-blocks","plugin_tags-custom-attributes","plugin_tags-gutenberg","plugin_tags-links","plugin_contributors-stevegibbs","plugin_committers-stevegibbs"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/steves-attributes.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress's Gutenberg editor makes it easy to add links to images, buttons, and text, but it doesn't provide a straightforward way to add custom HTML attributes to those links. This is where \"Steve's Attributes\" comes in.<\/p>\n\n<p>This plugin extends the core Image, Button, Paragraph, List Item, Heading, File, and Navigation Link blocks to include a \"Custom Attributes\" field in their link settings. You can add any HTML attributes you need, such as data attributes for popups, custom classes, tracking attributes, or accessibility enhancements.<\/p>\n\n<p><strong>Key Features:<\/strong>\n*   Adds a \"Custom Attributes\" textarea to the link settings of supported blocks.\n*   Parses attributes in <code>key=\"value\"<\/code> format (one per line).\n*   Merges <code>class<\/code> attributes properly to avoid duplicates.\n*   Super lightweight - only loads in the block editor, no frontend impact.\n*   No database queries or heavy processing.\n*   <strong>Expanded Block Support<\/strong>: Now supports Image, Button, Paragraph, List Item, Heading, File, and Navigation Link blocks.<\/p>\n\n<p><strong>Use Cases:<\/strong>\n*   Adding popup triggers (e.g., <code>data-popup-id=\"123\"<\/code>)\n*   Custom styling classes (e.g., <code>class=\"my-custom-class\"<\/code>)\n*   Tracking attributes (e.g., <code>data-ga-action=\"click\"<\/code>)\n*   Accessibility enhancements (e.g., <code>aria-label=\"Open details\"<\/code>)<\/p>\n\n<h3>Usage<\/h3>\n\n<h3>General Instructions<\/h3>\n\n<ol>\n<li>Add one of the supported blocks to your post\/page (Image, Button, Paragraph, List Item, Heading, File, Navigation Link).<\/li>\n<li>Ensure the block contains a link. For example:\n\n<ul>\n<li><strong>Image Block<\/strong>: Set a link URL in the block settings.<\/li>\n<li><strong>Button Block<\/strong>: Set the button text and link URL.<\/li>\n<li><strong>Paragraph\/Heading\/List Item Blocks<\/strong>: Select text and add a link using the inline link tool.<\/li>\n<li><strong>File Block<\/strong>: Upload a file, and ensure it's linked.<\/li>\n<li><strong>Navigation Link Block<\/strong>: Add a navigation item with a URL.<\/li>\n<\/ul><\/li>\n<li>Select the block containing the link.<\/li>\n<li>In the block sidebar, locate the \"Link Attributes\" panel.<\/li>\n<li>In the \"Custom Attributes\" field, add your desired HTML attributes, one per line, in <code>key=\"value\"<\/code> format. You can also add classes and IDs.<\/li>\n<\/ol>\n\n<h3>Example<\/h3>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>data-popup-id=\"my-popup\"\nrel=\"noopener\"\nclass=\"my-custom-class\"\nid=\"unique-id\"\n    `<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>steves-attributes<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20add%20bloat%20to%20my%20site%3F\"><h3>Does this plugin add bloat to my site?<\/h3><\/dt>\n<dd><p>No. The plugin only loads JavaScript and CSS in the WordPress admin when editing posts\/pages. It has no impact on frontend performance.<\/p><\/dd>\n<dt id=\"can%20i%20deactivate%20the%20plugin%20after%20adding%20attributes%3F\"><h3>Can I deactivate the plugin after adding attributes?<\/h3><\/dt>\n<dd><p>Yes, the attributes are saved in the post content. However, they won't be added to the HTML output until the plugin is reactivated, as the rendering filter is what applies them.<\/p><\/dd>\n<dt id=\"what%20blocks%20are%20supported%3F\"><h3>What blocks are supported?<\/h3><\/dt>\n<dd><p>Currently supports Image, Button, Paragraph, List Item, Heading, File, and Navigation Link blocks when they contain links.<\/p><\/dd>\n<dt id=\"is%20this%20secure%3F\"><h3>Is this secure?<\/h3><\/dt>\n<dd><p>Yes, all input is sanitized and escaped properly using <code>esc_attr()<\/code> to prevent Cross-Site Scripting (XSS) vulnerabilities.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added support for List Item (<code>core\/list-item<\/code>), Heading (<code>core\/heading<\/code>), File (<code>core\/file<\/code>), and Navigation Link (<code>core\/navigation-link<\/code>) blocks.<\/li>\n<li>Refined <code>hasLink<\/code> logic to ensure the attributes field only appears when a link is present in the block.<\/li>\n<li>Removed support for <code>core\/post-featured-image<\/code> block.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Support for Image, Button, and Paragraph blocks<\/li>\n<li>Custom attributes parsing and rendering<\/li>\n<li>Proper class attribute merging<\/li>\n<\/ul>","raw_excerpt":"Extends Gutenberg blocks to easily add custom attributes to links in various blocks without resorting to custom HTML.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/282869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=282869"}],"author":[{"embeddable":true,"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stevegibbs"}],"wp:attachment":[{"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=282869"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=282869"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=282869"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=282869"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=282869"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/zul.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=282869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}