Acabado: Disabling SEO Functionality

by Josh Koop | Last Updated: July 22, 2020
As an Amazon Associate we earn from qualifying purchases made on our website. If you make a purchase through links from this website, we may get a small share of the sale from Amazon and other similar affiliate programs. You can read our complete disclaimer information for more details.

Please Note: This comes with no support from myself or from Income School as it is only a proof that the ability exists to run Acabado while maintaining the speed benefits. Use at your own risk, I don’t have the ability to make updates to this content.

If you still choose to run a different plugin to manage the SEO or to assist you in your SEO attempts then having a theme overwrite the files you may make is probably high on your list to manage. Someone recently asked how to stop the automatic generation of the sitemap.xml that the theme does for you whenever a post, page or update occurs.

What I did was use Code Snippets to build a section of code that basically unloads those functions after they load, this makes the code no longer active which means no more updates will occur to the sitemap until you remove this code snippet from your site.

You will need to have some other software generate your sitemap and you will need to submit that sitemap to Google or risk losing that tie into Google and Bing or other search engines.

Disabling Acabado Sitemap Only

If you choose to use another plugin to create a sitemap you can use the code snippet code below set to run everywhere:

add_action('after_setup_theme', 'remove_parent_functions');

function remove_parent_functions() {
    remove_action('publish_post', 'income_school_create_sitemap', 10);
	remove_action('publish_page', 'income_school_create_sitemap', 10);
	remove_action('save_post', 'income_school_create_sitemap', 10);
	remove_action( 'publish_post', 'income_school_create_image_sitemap' );
	remove_action( 'publish_page', 'income_school_create_image_sitemap' );
	remove_action( 'save_post',    'income_school_create_image_sitemap' );
}

Strip Out All SEO Function From Acabado

If you want to run another SEO plugin with Acabado you may experience issues due to the automatic Sitemap.xml generation and Meta description which double up on posts.

I wrote the following Code Snippet to help by unloading those sections from the theme and allowing you to run whichever SEO plugin you prefer if Acabado doesn’t fit your needs.

Download an Importable File here (Right Click and Save As)

Code Snippet For Manual Creation

  1. Download and Install Code Snippets Plugin
  2. Set Title [ Disable Acabado SEO ]
  3. Paste In Code From Below
  4. Set to [ Run on Front End ]
  5. Click on [ Save And Activate ]
add_action('after_setup_theme', 'remove_acabado_seo_functions');

function remove_acabado_seo_functions() {
    remove_action('publish_post', 'income_school_create_sitemap', 10);
	remove_action('publish_page', 'income_school_create_sitemap', 10);
	remove_action('save_post', 'income_school_create_sitemap', 10);
	remove_action( 'publish_post', 'income_school_create_image_sitemap' );
	remove_action( 'publish_page', 'income_school_create_image_sitemap' );
	remove_action( 'save_post',    'income_school_create_image_sitemap' );
	remove_action( 'wp_head', 'add_opengraph_meta' );
}

I love technology, I have plenty of technical side experience but never really thought of blogging as a way to earn an income. With everything that has gone on in the last couple years and the instability of the job markets I started to learn how to blog and build affiliate niche sites to add more income channels to give me the chance to break free from the financial chains that bind me and find real freedom!