.lar-ref-wrap, .lar-ref-wrap * { box-sizing: border-box; }
.lar-ref-wrap { font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, sans-serif; color: #1a2232; line-height: 1.6; }
.lar-ref-wrap img { max-width: 100%; display: block; }
.lar-ref-wrap p { margin: 0 0 10px; }
.lar-ref-wrap h2, .lar-ref-wrap h3 { margin: 0 0 10px; line-height: 1.15; }
.lar-ref-wrap ul { list-style: none; margin: 0; padding: 0; }
.lar-ref-wrap a { color: #145A8D; text-decoration: none; }
/* Hero */
.lar-ref-hero { background:#0d2d4a; background-image:radial-gradient(ellipse 80% 60% at 70% 40%, rgba(20,90,141,0.55) 0%, transparent 65%), radial-gradient(ellipse 40% 40% at 10% 80%, rgba(13,74,114,0.4) 0%, transparent 60%); padding:64px 24px 72px; text-align:center; }
.lar-ref-hero-inner { max-width:760px; margin:0 auto; }
.lar-ref-badge-row { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:100px; padding:6px 16px 6px 10px; margin-bottom:22px; }
.lar-ref-badge-dot { width:8px; height:8px; border-radius:50%; background:#5bc8f5; flex-shrink:0; }
.lar-ref-badge-text { font-size:0.78rem; font-weight:600; color:#a8d8f0; letter-spacing:0.04em; text-transform:uppercase; }
.lar-ref-hero h1 { font-size:clamp(2rem,5vw,3rem); font-weight:900; color:#fff; line-height:1.15; margin-bottom:18px; letter-spacing:-0.02em; }
.lar-ref-hero h1 span { color:#5bc8f5; }
.lar-ref-hero-sub { font-size:clamp(1rem,2.5vw,1.2rem); color:#a8c8e0; max-width:580px; margin:0 auto 32px; line-height:1.6; }
.lar-ref-hero-ctas { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:40px; }
.lar-ref-cta-w { display:inline-flex; align-items:center; gap:7px; background:#fff !important; color:#145A8D !important; padding:14px 26px; border-radius:8px; font-weight:700; font-size:0.95rem; box-shadow:0 3px 14px rgba(0,0,0,0.22); text-decoration:none !important; }
.lar-ref-cta-w:hover { color:#0d4a72 !important; box-shadow:0 5px 20px rgba(0,0,0,0.32); }
.lar-ref-cta-o { display:inline-flex; align-items:center; gap:7px; background:transparent !important; color:#fff !important; padding:14px 26px; border-radius:8px; font-weight:700; font-size:0.95rem; border:2px solid rgba(255,255,255,0.55); text-decoration:none !important; }
.lar-ref-cta-o:hover { border-color:#fff; }
.lar-ref-trust { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; }
.lar-ref-trust-item { display:flex; align-items:center; gap:8px; font-size:0.82rem; color:#a8c8e0; font-weight:500; }
.lar-ref-trust-icon { font-size:1rem; }
/* Stats */
.lar-ref-stats { background:#f5f8fc; padding:48px 24px; }
.lar-ref-stats-grid { display:flex; flex-wrap:wrap; gap:18px; max-width:1140px; margin:0 auto; }
.lar-ref-stat { flex:1 1 200px; min-width:200px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:24px 20px; text-align:center; box-shadow:0 2px 12px rgba(13,35,64,0.05); }
.lar-ref-stat-num { font-size:clamp(1.5rem,3vw,2.2rem); font-weight:900; color:#145A8D; line-height:1.1; margin-bottom:8px; letter-spacing:-0.02em; }
.lar-ref-stat-lbl { font-size:0.85rem; color:#5a6a80; line-height:1.45; }
/* Inline review badge */
.lar-ref-rb-wrap { background:#f5f8fc; padding:36px 24px 0; text-align:center; }
.lar-badge { display:inline-flex; align-items:center; gap:14px; background:#fff; border:1px solid rgba(20,90,141,.14); border-radius:14px; padding:14px 20px; box-shadow:0 4px 16px rgba(0,0,0,.07); text-decoration:none; color:#1d2733; max-width:100%; transition:box-shadow .15s; }
.lar-badge:hover { box-shadow:0 8px 24px rgba(0,0,0,.11); text-decoration:none; }
.lar-badge-stars { display:flex; flex-direction:column; align-items:center; gap:3px; flex-shrink:0; }
.lar-badge-star-row { color:#FFC107; font-size:18px; letter-spacing:.04em; line-height:1; }
.lar-badge-rating { font-size:.78rem; font-weight:700; color:#145A8D; line-height:1; }
.lar-badge-divider { width:1px; height:38px; background:rgba(20,90,141,.13); flex-shrink:0; }
.lar-badge-body { display:flex; flex-direction:column; gap:2px; }
.lar-badge-count { font-size:1.25rem; font-weight:900; color:#145A8D; line-height:1; }
.lar-badge-count.lar-loading { color:#c8d8e8; animation:lar-shimmer 1s ease-in-out infinite alternate; }
@keyframes lar-shimmer { from{opacity:.4} to{opacity:1} }
.lar-badge-label { font-size:.78rem; color:#66758a; line-height:1.3; font-weight:500; }
.lar-badge-platforms { font-size:.7rem; color:#99a8b8; line-height:1; margin-top:1px; }
.lar-badge-auth { display:flex; flex-direction:column; gap:4px; flex-shrink:0; }
.lar-badge-auth-item { display:flex; align-items:center; gap:5px; font-size:.72rem; font-weight:700; color:#0d4a72; line-height:1; }
.lar-badge-auth-dot { width:6px; height:6px; border-radius:50%; background:#145A8D; flex-shrink:0; }
@media (max-width:480px) { .lar-badge{gap:10px; padding:12px 14px} .lar-badge-auth{display:none} .lar-badge-count{font-size:1.1rem} }
/* Section base */
.lar-ref-section { padding:56px 24px; }
.lar-ref-section–alt { background:#f5f8fc; }
.lar-ref-inner { max-width:1100px; margin:0 auto; }
.lar-ref-eyebrow { font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#145A8D; margin-bottom:8px; }
.lar-ref-section-title { font-size:clamp(1.6rem,3vw,2rem); font-weight:800; color:#0d2d4a; line-height:1.2; margin-bottom:14px; letter-spacing:-0.01em; }
.lar-ref-section-lead { font-size:1rem; color:#3a4757; line-height:1.7; max-width:680px; margin-bottom:32px; }
/* Problem cards */
.lar-ref-problems { display:flex; flex-wrap:wrap; gap:18px; }
.lar-ref-problem { flex:1 1 280px; min-width:280px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:24px; box-shadow:0 2px 12px rgba(13,35,64,0.04); }
.lar-ref-problem-icon { font-size:1.6rem; margin-bottom:10px; }
.lar-ref-problem h3 { font-size:1.05rem; font-weight:700; color:#0d2d4a; margin:0 0 8px; }
.lar-ref-problem p { font-size:.92rem; color:#4a5a6a; line-height:1.6; margin:0; }
/* Brand callout */
.lar-ref-brand { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:32px; box-shadow:0 2px 14px rgba(13,35,64,0.06); }
.lar-ref-brand-eyebrow { display:inline-block; background:#dbeafe; color:#145A8D; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; padding:5px 12px; border-radius:4px; margin-bottom:12px; }
.lar-ref-brand h2 { font-size:clamp(1.4rem,2.6vw,2rem); color:#0d2d4a; margin:0 0 14px; line-height:1.2; }
.lar-ref-brand p { font-size:1rem; color:#3a4757; line-height:1.7; margin-bottom:14px; }
/* Mid CTA strip */
.lar-ref-mid-cta { background:#f5f8fb; border-top:1px solid #dde8f0; border-bottom:1px solid #dde8f0; padding:28px 24px; }
.lar-ref-mid-cta-inner { max-width:860px; margin:0 auto; display:flex; flex-wrap:wrap; gap:20px; align-items:center; }
.lar-ref-mid-cta-text { flex:1 1 380px; min-width:280px; }
.lar-ref-mid-cta-eyebrow { font-size:0.75rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#145A8D; margin-bottom:5px; }
.lar-ref-mid-cta-msg { font-size:1rem; color:#0d2d4a; font-weight:700; margin:0; line-height:1.4; }
.lar-ref-mid-cta-btns { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; flex-shrink:0; }
.lar-ref-mid-cta-primary { display:inline-block; background:#145A8D; color:#fff !important; font-weight:800; font-size:0.95rem; padding:13px 24px; border-radius:8px; text-decoration:none !important; white-space:nowrap; }
.lar-ref-mid-cta-outline { display:inline-block; background:transparent; color:#145A8D !important; font-weight:700; font-size:0.95rem; padding:13px 20px; border-radius:8px; border:2px solid #145A8D; text-decoration:none !important; white-space:nowrap; }
/* FAQ */
.lar-ref-faq-grid { display:flex; flex-wrap:wrap; gap:14px; }
.lar-ref-faq-item { flex:1 1 100%; background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:20px 22px; }
.lar-ref-faq-q { font-size:1.05rem; font-weight:700; color:#0d2d4a; margin:0 0 10px; line-height:1.4; }
.lar-ref-faq-a { font-size:.95rem; color:#3a4757; line-height:1.65; margin:0; }
.lar-ref-faq-a a { color:#145A8D; font-weight:600; }
/* Related links */
.lar-ref-links { display:flex; flex-wrap:wrap; gap:14px; }
.lar-ref-link { flex:1 1 260px; min-width:260px; background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:18px 20px; text-decoration:none !important; transition:border-color .15s, box-shadow .15s; display:block; }
.lar-ref-link:hover { border-color:#145A8D; box-shadow:0 4px 16px rgba(20,90,141,.1); }
.lar-ref-link-title { display:block; font-size:1rem; font-weight:700; color:#145A8D; margin:0 0 4px; }
.lar-ref-link-desc { display:block; font-size:.85rem; color:#5a6a80; line-height:1.5; margin:0; }
/* Final CTA */
.lar-ref-final { background:#0d2d4a; padding:56px 24px; text-align:center; color:#fff; }
.lar-ref-final h2 { color:#fff; font-size:clamp(1.5rem,3vw,2.2rem); margin:0 0 10px; }
.lar-ref-final p { color:#a8c8e0; max-width:560px; margin:0 auto 24px; }
.lar-ref-final-row { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.lar-ref-final-w { background:#fff !important; color:#145A8D !important; padding:14px 28px; border-radius:8px; font-weight:800; text-decoration:none !important; box-shadow:0 3px 14px rgba(0,0,0,.22); }
.lar-ref-final-o { background:transparent; color:#fff !important; padding:14px 28px; border-radius:8px; font-weight:700; text-decoration:none !important; border:2px solid rgba(255,255,255,.55); }
Louisville, Ohio · Stark County
Refrigerator Repair in
Louisville, OH & Stark County
French door, side-by-side, top-freezer, and built-in column refrigerators — all brands. Sealed-system certified, all 4 factory authorizations (Bosch, Thermador, GE, Speed Queen). 85–90% first-call complete.
✓Bosch & Thermador Factory Authorized
✓GE & Speed Queen Factory Authorized
✓85–90% First-Call Complete
✓379+ Verified Reviews
85–90%
First-call complete rate — most fridges fixed in one visit
5,000+
Appliance repairs completed since 2018
379+
Verified 5-star reviews across platforms
6 mo
Labor warranty on all completed repairs
What We Fix
Common Refrigerator Problems We Service
A fridge that runs but won’t cool usually has one of four root causes. A proper diagnosis checks all of them before any parts are replaced.
🌡️
Not cooling
Frost buildup on evaporator coils blocking airflow (defrost failure), failed evaporator fan motor, dirty/failing condenser, or sealed-system issue. If the freezer is cold but the fridge is warm, evap fan or defrost is almost always the cause.
❄️
Frozen-over back wall
On Samsung French door units: design issue with the evap-cover drain. Defrosting only buys 2–3 weeks. The real fix is a drain modification. On other brands: defrost system component (heater, thermostat, defrost board).
🧊
Ice maker not working
Filter clog (replace every 6 months — first thing to try), water inlet valve failure, ice maker module failure, frozen fill tube, or thermistor failure. Diagnosis sequence: filter → valve → module → fill tube.
💧
Water dispenser issues
Filter clog, frozen water line behind the fridge, water inlet valve failure, or dispenser switch/control board failure. Most water-related symptoms start with the filter.
🔊
Loud compressor / clicking
On LG linear-compressor units: reed valve failure (compressor runs normally but doesn’t pump). On standard compressors: clicking means start relay; constant running with normal noise but no cooling means sealed-system issue.
🌡️
Temperature fluctuating
Damper control failure, thermistor (temperature sensor) failure, control board issue, or defrost cycle running off-schedule. Diagnostic reads service-mode temperatures vs displayed temps.
🚪
Door seal / gasket failure
Gasket loses seal after years of use — warm air leaks in, compressor runs constantly, condensation forms inside. Replacement is straightforward; gasket runs $30–$100 depending on the platform.
🔌
Sealed system failure
Refrigerant leak, failed compressor, or restriction in capillary tube. Pressure testing confirms. EPA 608 certified for refrigerant handling, R-600a certified for hydrocarbon refrigerants on modern units.
🏷️
Error codes
Brand-specific codes — Samsung 22E/40E, LG ER series, Whirlpool/Maytag PF/PO codes, Bosch E-codes. We diagnose against the platform’s service mode, not by guessing.
Ready to Schedule?
Don’t defrost the unit before we arrive — the failure state is diagnostic evidence. Schedule online or call.
Factory Authorized
Bosch & Thermador Refrigerator — Factory Authorized
Bosch refrigerators (300, 500, 800, and Benchmark series) and Thermador refrigerators (Freedom Collection columns, French door, bottom-freezer, and built-in column units) share the same BSH Group platform. Louisville Appliance Repair holds factory authorization for both brands — manufacturer-trained diagnostics, direct OEM parts access, and warranty-eligible repairs across the full BSH refrigeration lineup.
Common BSH refrigerator issues we service: not-cooling diagnostics across all sealed-system platforms, ice maker and water inlet valve failures, control board EA-series error codes (Thermador-specific), toe-kick condenser cleaning on Freedom Collection units, fan motor replacements, and sealed-system work where R-600a or R-134a is appropriate. As a BSH-authorized servicer we have access to manufacturer service documents and parts catalog that independent shops don’t.
See full Bosch Authorized Service coverage →
FAQ
Refrigerator Repair — Common Questions
Why is my refrigerator not cooling?
A fridge that runs but won’t cool usually has one of four root causes: frost buildup on the evaporator coils blocking airflow (defrost system failure), a failed evaporator fan motor, a dirty or failing condenser, or a sealed-system issue. If the freezer is cold but the fridge is warm, the evaporator fan or defrost system is almost always the cause. A proper diagnosis checks all four before any parts are replaced.
How much does refrigerator repair cost?
Diagnostic starts at $167 and applies toward the total repair price. Common repairs (fan motor, defrost heater, water valve, ice maker module) run $250–$500 parts and labor. Sealed-system repairs (compressor, capillary, refrigerant) are higher-cost; we give a firm written quote before any work begins.
Is it worth repairing my refrigerator?
In most cases yes — the best appliance is often the one already in your home. We compare repair cost to new replacement cost only (never used), and tell you honestly when it doesn’t make sense. Premium fridges (Sub-Zero, Bosch, Thermador, built-in column units) almost always make sense to repair given replacement cost. See our
repair-vs-replace framework.
Should I defrost the fridge before you come out?
No. The frost pattern is diagnostic evidence — we need to see the failure state to diagnose accurately. Defrosting first erases the evidence and often forces a second trip. Leave it running with the door closed.
My LG compressor sounds normal but the fridge isn’t cooling — what’s wrong?
Almost certainly the LG linear-compressor internal reed valve. The compressor motor keeps running normally but can’t generate the pressure needed to move refrigerant. Pressure testing confirms. LG provides a 10-year parts warranty on the linear compressor for most models manufactured after 2017. See our
LG refrigerator repair page.
How quickly will you respond?
From the Field
Recent Refrigerator Repairs Near You
Real jobs, real diagnoses — what we see in Stark County.
GE Refrigerator Repair – Canton, OH (GWE19JYLGFFS)
Samuel was called back to a service address on Northfield Ave SE in Canton, OH for a GE refrigerator that had already received major…
July 17, 2026Samsung Refrigerator Repair – North Canton, OH (RF28T5F01SR)
Samuel was called to North Canton, OH on a service call to Orchard Hill Drive for a Samsung refrigerator that had stopped cooling and…
July 16, 2026Bosch Refrigerator Repair – Akron, OH (B36FD31ENS/01)
On a service call to Akron, Samuel Willhite investigated a Bosch refrigerator (model B36FD31ENS/01) reported to be producing slow or no ice. A thorough…
July 16, 2026Maytag Refrigerator Repair – Canton, OH (MFI2269FRZ04)
On a service call to Canton, OH, Samuel Willhite diagnosed a Maytag refrigerator that had stopped producing ice. A thorough inspection traced the failure…
July 14, 2026Bosch Refrigerator Repair – Cuyahoga Falls, OH (B36FD31ENS/01)
On a July 2026 service call to Cuyahoga Falls, Samuel Willhite worked through a persistent no-ice complaint on a Bosch refrigerator (model B36FD31ENS/01) that…
July 13, 2026LG Refrigerator Repair – Hanoverton, OH (LFCS22520S/05)
Samuel made a service call to Camp Blvd in Hanoverton, OH on a refrigerator that had stopped cooling entirely. After running LG’s diagnostic protocol…
July 10, 2026LG Refrigerator Repair – Uniontown, OH (LFXS29766S/01)
On a service call to Spruce Haven Street Northwest in Uniontown, OH, Samuel found an LG refrigerator that had lost cooling in both the…
July 10, 2026GE Refrigerator Repair – Massillon, OH (PVD28BYNIFS)
Samuel was dispatched to Canford Ave NW in Massillon for a second-opinion service call on a GE refrigerator that had been flagged for compressor…
July 10, 2026Bosch Refrigerator Repair – Massillon, OH (B36FD10ENS/01)
Samuel was back on Lutz Ave NW in Massillon for a callback on a Bosch refrigerator that had resumed ice production after a July…
July 8, 2026Bosch Refrigerator Repair – Wadsworth, OH (B36CL80ENS/07)
A Bosch refrigerator in Wadsworth, OH was giving its owner a frustrating daily chore: the freezer drawer would not stay closed on its own…
July 7, 2026Bosch Refrigerator Repair – Akron, OH (B36FD31ENS/01)
A Bosch refrigerator on Caine Road in Akron, OH stopped producing ice, and Samuel Willhite was on-site to get it running again. The icemaker…
July 7, 2026LG Refrigerator Repair – Canton, OH (LRFWS2906S/00)
On a service call to Canton, OH, Samuel Willhite found an LG refrigerator displaying an FFE error code, with the freezer holding temperature but…
July 6, 2026
More from Louisville Appliance Repair
Related Repair Services
Refrigerator Not Cooling? Let’s Fix It.
Schedule a diagnostic visit online or call. We bring common parts on the truck and don’t recommend defrosting before we arrive — the failure state helps us diagnose.
{“@context”:”https://schema.org”,”@graph”:[{“@type”:”Service”,”@id”:”https://louisvilleappliance.repair/refrigerator-repair/#service”,”name”:”Refrigerator Repair”,”url”:”https://louisvilleappliance.repair/refrigerator-repair/”,”serviceType”:”Appliance Repair”,”description”:”Refrigerator repair in Louisville OH and Stark County. All brands and configurations — French door, side-by-side, top-freezer, built-in. Bosch, Thermador, GE & Speed Queen factory-authorized. Sealed-system certified. 85–90% first-call complete.”,”provider”:{“@type”:”HomeAndConstructionBusiness”,”name”:”Louisville Appliance Repair”,”url”:”https://louisvilleappliance.repair/”,”telephone”:”+1-330-693-9163″,”address”:{“@type”:”PostalAddress”,”addressLocality”:”Louisville”,”addressRegion”:”OH”,”postalCode”:”44641″,”addressCountry”:”US”}},”areaServed”:[{“@type”:”City”,”name”:”Louisville”,”containedInPlace”:{“@type”:”AdministrativeArea”,”name”:”Stark County, Ohio”}},{“@type”:”City”,”name”:”Canton”,”containedInPlace”:{“@type”:”AdministrativeArea”,”name”:”Stark County, Ohio”}},{“@type”:”City”,”name”:”Massillon”,”containedInPlace”:{“@type”:”AdministrativeArea”,”name”:”Stark County, Ohio”}},{“@type”:”City”,”name”:”Alliance”,”containedInPlace”:{“@type”:”AdministrativeArea”,”name”:”Stark County, Ohio”}}],”aggregateRating”:{“@type”:”AggregateRating”,”ratingValue”:4.9,”reviewCount”:380,”bestRating”:5,”worstRating”:1}},{“@type”:”BreadcrumbList”,”itemListElement”:[{“@type”:”ListItem”,”position”:1,”name”:”Home”,”item”:”https://louisvilleappliance.repair/”},{“@type”:”ListItem”,”position”:2,”name”:”Services”,”item”:”https://louisvilleappliance.repair/services/”},{“@type”:”ListItem”,”position”:3,”name”:”Refrigerator Repair”,”item”:”https://louisvilleappliance.repair/refrigerator-repair/”}]},{“@type”:”FAQPage”,”mainEntity”:[{“@type”:”Question”,”name”:”Why is my refrigerator not cooling?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”A fridge that runs but won’t cool usually has one of four root causes: frost buildup on the evaporator coils blocking airflow (defrost system failure), a failed evaporator fan motor, a dirty or failing condenser, or a sealed-system issue. If the freezer is cold but the fridge is warm, the evaporator fan or defrost system is almost always the cause. A proper diagnosis checks all four before any parts are replaced.”}},{“@type”:”Question”,”name”:”How much does refrigerator repair cost?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Diagnostic starts at 7 and applies toward the total repair price. Common repairs (fan motor, defrost heater, water valve, ice maker module) run 0–0 parts and labor. Sealed-system repairs (compressor, capillary, refrigerant) are higher-cost; we give a firm written quote before any work begins.”}},{“@type”:”Question”,”name”:”Is it worth repairing my refrigerator?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”In most cases yes — the best appliance is often the one already in your home. We compare repair cost to new replacement cost only (never used), and tell you honestly when it doesn’t make sense. Premium fridges (Sub-Zero, Bosch, Thermador, built-in column units) almost always make sense to repair given replacement cost. See our repair-vs-replace framework.”}},{“@type”:”Question”,”name”:”Should I defrost the fridge before you come out?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”No. The frost pattern is diagnostic evidence — we need to see the failure state to diagnose accurately. Defrosting first erases the evidence and often forces a second trip. Leave it running with the door closed.”}},{“@type”:”Question”,”name”:”My LG compressor sounds normal but the fridge isn’t cooling — what’s wrong?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Almost certainly the LG linear-compressor internal reed valve. The compressor motor keeps running normally but can’t generate the pressure needed to move refrigerant. Pressure testing confirms. LG provides a 10-year parts warranty on the linear compressor for most models manufactured after 2017. See our LG refrigerator repair page.”}},{“@type”:”Question”,”name”:”How quickly will you respond?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Typically within minutes during normal business hours. Schedule online at /schedule/ 24/7 or call (330) 693-9163.”}}]}]}
(function(){
var STORAGE_KEY = ‘lar_review_count’;
var API_ENDPOINT = ‘/wp-json/lar/v1/review-count’;
var numEl = document.getElementById(‘lar-ref-badge-num’);
function setCount(n){
if(!numEl || !n) return;
numEl.classList.remove(‘lar-loading’);
numEl.innerHTML = n + ‘+ reviews’;
document.querySelectorAll(‘.lar-review-count’).forEach(function(t){ t.textContent = n + ‘+’; });
}
var cached = null;
try { cached = localStorage.getItem(STORAGE_KEY); } catch(e){}
if(cached && cached !== ‘null’) { setCount(cached); }
else {
fetch(API_ENDPOINT).then(function(r){return r.json();}).then(function(d){
if(d && d.count){ setCount(d.count); try{localStorage.setItem(STORAGE_KEY,d.count);}catch(e){} }
}).catch(function(){ setCount(‘379’); });
}
})();