Changeset 3167485
- Timestamp:
- 10/12/2024 08:44:45 AM (18 months ago)
- Location:
- inesta-faq-h2
- Files:
-
- 1 added
- 2 edited
- 2 copied
-
tags/1.0.1 (added)
-
tags/1.0.1/inesta-faq-h2.php (copied) (copied from inesta-faq-h2/trunk/inesta-faq-h2.php) (2 diffs)
-
tags/1.0.1/readme.txt (copied) (copied from inesta-faq-h2/trunk/readme.txt) (3 diffs)
-
trunk/inesta-faq-h2.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
inesta-faq-h2/tags/1.0.1/inesta-faq-h2.php
r3167465 r3167485 3 3 * Plugin Name: Inesta FAQ H2 4 4 * Description: Automatically changes Yoast FAQ question labels to H2 elements for better SEO and accessibility. 5 * Version: 1.0 5 * Version: 1.0.1 6 6 * Author: Roel Veldhuizen 7 7 * Author URI: https://webapplicatielatenmaken.nl … … 40 40 // Add the filter to modify content when rendered. 41 41 add_filter( 'the_content', 'inesta_change_yoast_faq_to_h2' ); 42 43 /** 44 * @param $content 45 * @return array|mixed|string|string[]|null 46 */ 47 function inesta_change_power_pack_faq_to_h2($content) { 48 // Controleer of de content het PP FAQ blok bevat 49 if (strpos($content, 'pp-faq-button-label') !== false) { 50 // Gebruik een regex om de span-tags te vervangen door h2-tags 51 $pattern = '/<span class="pp-faq-button-label">(.*?)<\/span>/'; 52 $replacement = '<h2 class="pp-faq-button-label">$1</h2>'; 53 $content = preg_replace($pattern, $replacement, $content); 54 } 55 return $content; 56 } 57 58 // Voeg de filter toe aan 'the_content' om alleen de content van de pagina/post te bewerken 59 add_filter('the_content', 'inesta_change_power_pack_faq_to_h2'); -
inesta-faq-h2/tags/1.0.1/readme.txt
r3167468 r3167485 4 4 Requires at least: 5.0 5 5 Tested up to: 6.6.2 6 Stable tag: 1.0 6 Stable tag: 1.0.1 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 Automatically change Yoast FAQ question labels to H2 elements for better SEO and accessibility.10 Automatically change Yoast FAQ and Power Pack question labels to H2 elements for better SEO and accessibility. 11 11 12 12 == Description == 13 **Inesta FAQ H2** is a lightweight plugin designed to enhance your Yoast FAQ blocks by converting the default question labels from `<span>` elements to `<h2>` headings. This helps improve SEO by ensuring better use of semantic headings and can enhance accessibility for screen readers.13 **Inesta FAQ H2** is a lightweight plugin designed to enhance your Yoast or Power Pack FAQ blocks by converting the default question labels from `<span>` elements to `<h2>` headings. This helps improve SEO by ensuring better use of semantic headings and can enhance accessibility for screen readers. 14 14 15 15 ### Key Features 16 * Converts Yoast FAQ question labels to H2 headings automatically.16 * Converts Yoast and Power Pack FAQ question labels to H2 headings automatically. 17 17 * No configuration required — activate and the plugin works immediately. 18 18 * Improves SEO by providing proper heading structure within FAQ sections. … … 28 28 29 29 == Installation == 30 1. Upload the plugin files to the `/wp-content/plugins/inesta- yoast-faq-h2` directory, or install the plugin through the WordPress plugins screen directly.30 1. Upload the plugin files to the `/wp-content/plugins/inesta-faq-h2` directory, or install the plugin through the WordPress plugins screen directly. 31 31 2. Activate the plugin through the 'Plugins' screen in WordPress. 32 32 3. The plugin will automatically convert your Yoast FAQ question labels to H2 headings. … … 44 44 45 45 == Changelog == 46 = 1.0.1 = 47 * Added support for Beaver Builder Power Pack FAQ block. 48 46 49 = 1.0 = 47 50 * Initial release of Inesta Yoast FAQ H2. -
inesta-faq-h2/trunk/inesta-faq-h2.php
r3167465 r3167485 3 3 * Plugin Name: Inesta FAQ H2 4 4 * Description: Automatically changes Yoast FAQ question labels to H2 elements for better SEO and accessibility. 5 * Version: 1.0 5 * Version: 1.0.1 6 6 * Author: Roel Veldhuizen 7 7 * Author URI: https://webapplicatielatenmaken.nl … … 40 40 // Add the filter to modify content when rendered. 41 41 add_filter( 'the_content', 'inesta_change_yoast_faq_to_h2' ); 42 43 /** 44 * @param $content 45 * @return array|mixed|string|string[]|null 46 */ 47 function inesta_change_power_pack_faq_to_h2($content) { 48 // Controleer of de content het PP FAQ blok bevat 49 if (strpos($content, 'pp-faq-button-label') !== false) { 50 // Gebruik een regex om de span-tags te vervangen door h2-tags 51 $pattern = '/<span class="pp-faq-button-label">(.*?)<\/span>/'; 52 $replacement = '<h2 class="pp-faq-button-label">$1</h2>'; 53 $content = preg_replace($pattern, $replacement, $content); 54 } 55 return $content; 56 } 57 58 // Voeg de filter toe aan 'the_content' om alleen de content van de pagina/post te bewerken 59 add_filter('the_content', 'inesta_change_power_pack_faq_to_h2'); -
inesta-faq-h2/trunk/readme.txt
r3167468 r3167485 4 4 Requires at least: 5.0 5 5 Tested up to: 6.6.2 6 Stable tag: 1.0 6 Stable tag: 1.0.1 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 Automatically change Yoast FAQ question labels to H2 elements for better SEO and accessibility.10 Automatically change Yoast FAQ and Power Pack question labels to H2 elements for better SEO and accessibility. 11 11 12 12 == Description == 13 **Inesta FAQ H2** is a lightweight plugin designed to enhance your Yoast FAQ blocks by converting the default question labels from `<span>` elements to `<h2>` headings. This helps improve SEO by ensuring better use of semantic headings and can enhance accessibility for screen readers.13 **Inesta FAQ H2** is a lightweight plugin designed to enhance your Yoast or Power Pack FAQ blocks by converting the default question labels from `<span>` elements to `<h2>` headings. This helps improve SEO by ensuring better use of semantic headings and can enhance accessibility for screen readers. 14 14 15 15 ### Key Features 16 * Converts Yoast FAQ question labels to H2 headings automatically.16 * Converts Yoast and Power Pack FAQ question labels to H2 headings automatically. 17 17 * No configuration required — activate and the plugin works immediately. 18 18 * Improves SEO by providing proper heading structure within FAQ sections. … … 28 28 29 29 == Installation == 30 1. Upload the plugin files to the `/wp-content/plugins/inesta- yoast-faq-h2` directory, or install the plugin through the WordPress plugins screen directly.30 1. Upload the plugin files to the `/wp-content/plugins/inesta-faq-h2` directory, or install the plugin through the WordPress plugins screen directly. 31 31 2. Activate the plugin through the 'Plugins' screen in WordPress. 32 32 3. The plugin will automatically convert your Yoast FAQ question labels to H2 headings. … … 44 44 45 45 == Changelog == 46 = 1.0.1 = 47 * Added support for Beaver Builder Power Pack FAQ block. 48 46 49 = 1.0 = 47 50 * Initial release of Inesta Yoast FAQ H2.
Note: See TracChangeset
for help on using the changeset viewer.