Join our Facebook Group
ScriptsTribe • Sngine • Community
Join

Forum

The great place to discuss topics with other users

Auto SEO Cleanup for Sngine – No More Manual Edits!

'
Join the Conversation Στέλνω απάντηση
Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-06-02 14:43:53

1- this back is slowing the site.

2- I didn't understand your question. What it is about.

Israel Unya
Member
Joined: 2024-11-25 09:55:35
2025-06-02 19:04:18

Hey folks! 👋
I whipped up a nifty little script that automatically:

  • Adds missing alt and title attributes 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

  1. Download the zip and upload the ph file inside to you root

  2. 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.

Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-06-02 19:06:02

Hey folks! 👋
I whipped up a nifty little script that automatically:

  • Adds missing alt and title attributes 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

  1. Download the zip and upload the ph file inside to you root

  2. 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.

Piero Piero
Member
Joined: 2025-05-22 08:08:44
2025-06-06 09:18:33

Hey folks! 👋
I whipped up a nifty little script that automatically:

  • Adds missing alt and title attributes 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

  1. Download the zip and upload the ph file inside to you root

  2. 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.

Piero Piero
Member
Joined: 2025-05-22 08:08:44
2025-08-11 08:06:02

Hey folks! 👋
I whipped up a nifty little script that automatically:

  • Adds missing alt and title attributes 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

  1. Download the zip and upload the ph file inside to you root

  2. 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.

Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-08-11 08:10:49

Hey folks! 👋
I whipped up a nifty little script that automatically:

  • Adds missing alt and title attributes 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

  1. Download the zip and upload the ph file inside to you root

  2. 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.

ScriptsTribe https://scriptstribe.com