Commit 7b4f5b080e0 for woocommerce
commit 7b4f5b080e0b3ce5032d44104afc70cf4a6ffe89
Author: Cem Ünalan <raicem@users.noreply.github.com>
Date: Thu Oct 22 17:27:29 2026 +0300
Merge the Marketplace theme directory copy into one translatable string (#70052)
* WOOAIRR-316: Merge the Themes tab theme directory copy into one string
* Add changelog entry for the theme directory copy
diff --git a/plugins/woocommerce/changelog/wooairr-316 b/plugins/woocommerce/changelog/wooairr-316
new file mode 100644
index 00000000000..c3132c2439f
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooairr-316
@@ -0,0 +1,4 @@
+Significance: patch
+Type: tweak
+
+Let translators control the spacing in the Marketplace Themes tab "Didn't find a theme you like?" copy.
diff --git a/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx b/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx
index 84891dd09cd..643d9f29a03 100644
--- a/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx
+++ b/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx
@@ -151,29 +151,24 @@ export default function Products( props: ProductsProps ) {
'woocommerce-marketplace__browse-wp-theme-directory'
}
>
- <b key="wp-theme-directory-heading">
- { __( 'Didn’t find a theme you like?', 'woocommerce' ) }
- </b>{ ' ' }
- <span key="wp-theme-directory-copy">
- { createInterpolateElement(
- __(
- 'Browse the <a>WordPress.org theme directory</a> to discover more.',
- 'woocommerce'
+ { createInterpolateElement(
+ __(
+ '<b>Didn’t find a theme you like?</b> Browse the <a>WordPress.org theme directory</a> to discover more.',
+ 'woocommerce'
+ ),
+ {
+ b: <b />,
+ a: (
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
+ <a
+ href={
+ ADMIN_URL +
+ 'theme-install.php?search=e-commerce'
+ }
+ />
),
- {
- a: (
- // eslint-disable-next-line jsx-a11y/anchor-has-content
- <a
- key="wp-theme-directory"
- href={
- ADMIN_URL +
- 'theme-install.php?search=e-commerce'
- }
- />
- ),
- }
- ) }
- </span>
+ }
+ ) }
</div>
) }
{ ! isLoading && ! hasNoResults && showAllButton && (