Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions wp-content/themes/3w-2025/inc/seo-class.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,17 @@ private function output_product_schema() {
* Get meta description
*/
private function get_meta_description() {
// Pages whose editor excerpt is too short to work as a description.
if (is_page()) {
$page_descriptions = array(
'about-us' => '3W Distributing supplies genuine BRABUS parts and Mercedes G-Class upgrades from Las Vegas, with worldwide shipping and fitment support.',
);
$slug = get_post_field('post_name', get_queried_object_id());
if (isset($page_descriptions[$slug])) {
return $page_descriptions[$slug];
}
}

if (is_home() || is_front_page()) {
return $this->home_description ?: ($this->site_description ?: 'Welcome to 3W Distributing - Your trusted source for automotive parts and accessories');
}
Expand Down
9 changes: 1 addition & 8 deletions wp-content/themes/3w-2025/inc/seo-remediation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Purge stale full-page cache once when this remediation version ships.
*/
add_action( 'init', function () {
$cache_version = '2026-11-22-1';
$cache_version = '2026-11-22-2';
if ( get_option( 'threew_seo_remediation_cache_version' ) === $cache_version ) {
return;
}
Expand Down Expand Up @@ -211,13 +211,6 @@ function threew_2025_get_page_seo() {
return isset( $map[ $slug ] ) ? $map[ $slug ]['heading'] : $title;
}, 20, 2 );

add_filter( 'get_the_excerpt', function ( $excerpt, $post ) {
$map = threew_2025_get_page_seo();
$slug = $post instanceof WP_Post ? $post->post_name : '';

return isset( $map[ $slug ] ) ? $map[ $slug ]['description'] : $excerpt;
}, 20, 2 );

/**
* Consolidate overlapping price articles into two authoritative hubs.
*/
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/3w-2025/page-about.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<section class="threew-about-hero">
<div class="threew-about-hero__inner">
<p class="threew-about-hero__eyebrow">Your Partner in Performance</p>
<h1 class="threew-about-hero__title">About Us</h1>
<h1 class="threew-about-hero__title">About 3W Distributing</h1>
<p class="threew-about-hero__subtitle">Premium aftermarket parts and accessories for enthusiasts who demand excellence</p>
</div>
</section>
Expand Down
Loading