Forums
The great place to discuss topics with other users
Auto SEO Cleanup for Sngine – No More Manual Edits!
'Hey folks! đ
I whipped up a nifty little script that automatically:
-
Adds missing
altandtitleattributes to images and links -
Fixes
<h2>and<h3>tags by converting the first one to a proper<h1> -
Cleans up your markup without you lifting a finger every time you update your theme đ©âïž
Let’s be real — who’s got time to manually fix SEO stuff on every update? Not me, and definitely not you.
So here’s a smarter way.
Feel free to help me improve it and share your changes here.
đ§ Setup Instructions
-
Download the zip and upload the ph file inside to you root
- Download cleanseo.zip
đ§© Now update your bootstrap.php
Look for:
// init smarty
global $smarty;
$smarty = init_smarty();
Replace it with:
// ScriptsTribe SEO Cleanup Start
require(ABSPATH . 'cleanseo.php');
// init smarty
global $smarty;
$smarty = init_smarty();
if ($smarty && !isset($GLOBALS['_seo_filter_registered']) && function_exists('fix_global_html_output')) {
$smarty->registerFilter("output", "fix_global_html_output");
$GLOBALS['_seo_filter_registered'] = true;
}
// ScriptsTribe SEO Cleanup END
â
Done!
Now your site will auto add alt, title, and clean up header tags like a pro!
Say goodbye to fixing things manually every time you update your theme.
Hey folks! đ
I whipped up a nifty little script that automatically:
-
Adds missing
altandtitleattributes to images and links -
Fixes
<h2>and<h3>tags by converting the first one to a proper<h1> -
Cleans up your markup without you lifting a finger every time you update your theme đ©âïž
Let’s be real — who’s got time to manually fix SEO stuff on every update? Not me, and definitely not you.
So here’s a smarter way.
Feel free to help me improve it and share your changes here.
đ§ Setup Instructions
-
Download the zip and upload the ph file inside to you root
- Download cleanseo.zip
đ§© Now update your bootstrap.php
Look for:
// init smarty
global $smarty;
$smarty = init_smarty();
Replace it with:
// ScriptsTribe SEO Cleanup Start
require(ABSPATH . 'cleanseo.php');
// init smarty
global $smarty;
$smarty = init_smarty();
if ($smarty && !isset($GLOBALS['_seo_filter_registered']) && function_exists('fix_global_html_output')) {
$smarty->registerFilter("output", "fix_global_html_output");
$GLOBALS['_seo_filter_registered'] = true;
}
// ScriptsTribe SEO Cleanup END
â
Done!
Now your site will auto add alt, title, and clean up header tags like a pro!
Say goodbye to fixing things manually every time you update your theme.
Hey folks! đ
I whipped up a nifty little script that automatically:
-
Adds missing
altandtitleattributes to images and links -
Fixes
<h2>and<h3>tags by converting the first one to a proper<h1> -
Cleans up your markup without you lifting a finger every time you update your theme đ©âïž
Let’s be real — who’s got time to manually fix SEO stuff on every update? Not me, and definitely not you.
So here’s a smarter way.
Feel free to help me improve it and share your changes here.
đ§ Setup Instructions
-
Download the zip and upload the ph file inside to you root
- Download cleanseo.zip
đ§© Now update your bootstrap.php
Look for:
// init smarty
global $smarty;
$smarty = init_smarty();
Replace it with:
// ScriptsTribe SEO Cleanup Start
require(ABSPATH . 'cleanseo.php');
// init smarty
global $smarty;
$smarty = init_smarty();
if ($smarty && !isset($GLOBALS['_seo_filter_registered']) && function_exists('fix_global_html_output')) {
$smarty->registerFilter("output", "fix_global_html_output");
$GLOBALS['_seo_filter_registered'] = true;
}
// ScriptsTribe SEO Cleanup END
â
Done!
Now your site will auto add alt, title, and clean up header tags like a pro!
Say goodbye to fixing things manually every time you update your theme.
Hey folks! đ
I whipped up a nifty little script that automatically:
-
Adds missing
altandtitleattributes to images and links -
Fixes
<h2>and<h3>tags by converting the first one to a proper<h1> -
Cleans up your markup without you lifting a finger every time you update your theme đ©âïž
Let’s be real — who’s got time to manually fix SEO stuff on every update? Not me, and definitely not you.
So here’s a smarter way.
Feel free to help me improve it and share your changes here.
đ§ Setup Instructions
-
Download the zip and upload the ph file inside to you root
- Download cleanseo.zip
đ§© Now update your bootstrap.php
Look for:
// init smarty
global $smarty;
$smarty = init_smarty();
Replace it with:
// ScriptsTribe SEO Cleanup Start
require(ABSPATH . 'cleanseo.php');
// init smarty
global $smarty;
$smarty = init_smarty();
if ($smarty && !isset($GLOBALS['_seo_filter_registered']) && function_exists('fix_global_html_output')) {
$smarty->registerFilter("output", "fix_global_html_output");
$GLOBALS['_seo_filter_registered'] = true;
}
// ScriptsTribe SEO Cleanup END
â
Done!
Now your site will auto add alt, title, and clean up header tags like a pro!
Say goodbye to fixing things manually every time you update your theme.
Hey folks! đ
I whipped up a nifty little script that automatically:
-
Adds missing
altandtitleattributes to images and links -
Fixes
<h2>and<h3>tags by converting the first one to a proper<h1> -
Cleans up your markup without you lifting a finger every time you update your theme đ©âïž
Let’s be real — who’s got time to manually fix SEO stuff on every update? Not me, and definitely not you.
So here’s a smarter way.
Feel free to help me improve it and share your changes here.
đ§ Setup Instructions
-
Download the zip and upload the ph file inside to you root
- Download cleanseo.zip
đ§© Now update your bootstrap.php
Look for:
// init smarty
global $smarty;
$smarty = init_smarty();
Replace it with:
// ScriptsTribe SEO Cleanup Start
require(ABSPATH . 'cleanseo.php');
// init smarty
global $smarty;
$smarty = init_smarty();
if ($smarty && !isset($GLOBALS['_seo_filter_registered']) && function_exists('fix_global_html_output')) {
$smarty->registerFilter("output", "fix_global_html_output");
$GLOBALS['_seo_filter_registered'] = true;
}
// ScriptsTribe SEO Cleanup END
â
Done!
Now your site will auto add alt, title, and clean up header tags like a pro!
Say goodbye to fixing things manually every time you update your theme.