<?php /** * Plugin Name: Cocoona SEO Fixes * Description: Fixes multiple H1 tags, missing H1, and broken links on cocoona.in * Version: 2.0 */ // Fix multiple H1s and missing H1 via output buffer add_action('wp', function() { if (!is_page()) return; ob_start(function($html) { $post_id = get_the_ID(); // Pages with multiple H1s - keep first, change rest to H2 $multi_h1_pages = array( 239, // about 7885, // partner-clinics 1959, // breast-surgery 4951, // dermatosurgery 4988, // stem-cell 6600, // cosmetic-surgery-in-mumbai 3112, // dr-ashutosh-misra 3099, // dr-kriti-lohia 3087, // dr-itishree-gupta 2707, // facelift-surgery 2625, // neck-lift-surgery 2602, // eye-lift-surgery 2380, // breast-lift-surgery 2124, // buttock-lift 5801, // cosmetic-surgery-in-bangalore 2655, // rhinoplasty-surgery 2516, // gynecomastia-surgery 2464, // breast-reduction-surgery 2412, // breast-augmentation-surgery 2314, // tummy-tuck-surgery 2004, // mommy-makeover 5775, // cosmetic-surgery-in-ahmedabad 2159, // liposuction-surgery 3010, // dr-sanjay-parashar ); // Pages missing H1 - change first heading to H1 $missing_h1_pages = array( 2953, // doctors 3775, // thank-you 3620, // cosmetic-plastic-surgery-lp ); if (in_array($post_id, $multi_h1_pages)) { $count = 0; $html = preg_replace_callback('/<h1([^>]*)>(.*?)<\/h1>/is', function($m) use (&$count) { $count++; if ($count === 1) return $m[0]; return '<h2' . $m[1] . '>' . $m[2] . '</h2>'; }, $html); } if (in_array($post_id, $missing_h1_pages)) { $html = preg_replace_callback('/<h([2-6])([^>]*)>(.*?)<\/h\1>/is', function($m) { static $done = false; if ($done) return $m[0]; $done = true; return '<h1' . $m[2] . '>' . $m[3] . '</h1>'; }, $html, 1); } // Fix H1 text on specific pages if ($post_id === 467) { $html = preg_replace('/<h1[^>]*>Services<\/h1>/i', '<h1>Our Services</h1>', $html, 1); } if ($post_id === 2901) { $html = preg_replace('/<h1[^>]*>Blog<\/h1>/i', '<h1>Plastic Surgery Blog</h1>', $html, 1); } return $html; }); }); Tummy Tuck Archives - Cocoona
Chat

Tummy Tuck

What is the difference between liposuction and tummy tuck surgery?

What is the difference between liposuction and tummy tuck surgery?

If you’re unhappy with how your belly looks, you might be wondering whether you need liposuction & tummy tuck. People often confuse the two, but they’re very different procedures. At Cocoona Centre for Aesthetic Transformation, we explain this all the time—and we’re here to help you understand the difference, too. What Does Liposuction Do? Liposuction […]

What is the difference between liposuction and tummy tuck surgery? Read More »

Tummy Tuck and Liposuction

The Benefits of Combining Tummy Tuck Surgery with Liposuction

Some people have fat that is quite resistant to diet and exercise, and skin that’s loose around the midsection. Cosmetic surgery can be the solution. Tummy tuck surgery combined with liposuction is a wonderful way to have a flat, firm abdomen. At Cocoona Clinic, we are well aware that every patient needs the best care

The Benefits of Combining Tummy Tuck Surgery with Liposuction Read More »