Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Skip to main content

Troubleshooting

This page lists some common issues that people often see and the corresponding solutions. If you find any bug not listed here, please let us know.

Shortcodes not working

Sometimes, you have a shortcode in the post content or your page executes a special shortcode from a plugin like WooCommerce or EDD Invoices, and you see a blank page or the shortcode doesn't work at all.

The root cause might be that Slim SEO already parses the shortcodes when it tries to auto generate meta description. If the shortcode has something related to session, custom logic, etc., then it might not work as expected.

To fix this problem, you need to tell Slim SEO to skip processing the shortcodes.

Assuming you have the following shortcode in your post content:

[my_shortcode id="value" title="my custom title"]

Then to tell Slim SEO to skip it, add the following snippet in your theme's functions.php file:

add_filter( 'slim_seo_skipped_shortcodes', function( $shortcodes ) {
$shortcodes[] = 'my_shortcode';
return $shortcodes;
} );

Note that you need to add the shortcode name only, not the full shortcode text with its attributes.

If you want to skip multiple shortcodes, use the following snippet:

add_filter( 'slim_seo_skipped_shortcodes', function( $shortcodes ) {
$shortcodes[] = 'my_shortcode';
$shortcodes[] = 'another_shortcode';
return $shortcodes;
} );

You can also use the opposite filter slim_seo_allowed_shortcodes to filter the list of allowed shortcodes:

add_filter( 'slim_seo_allowed_shortcodes', function( $shortcodes ) {
return array_filter( $shortcodes, function( $shortcode ) {
// Do not allow shortcodes start with "my_prefix"
return ! str_starts_with( $shortcode, 'my_prefix_' );
}, ARRAY_FILTER_USE_KEY );
} );

Note that the slim_seo_allowed_shortcodes accepts an associate array of shortcodes, where key is the shortcode name and value is the callback function.

If you want to disable all shortcodes, use this snippet:

add_filter( 'slim_seo_allow_shortcodes', '__return_empty_array' );

Blocks not working

Similar to shortcodes, some blocks might not working properly. To fix this problem, use the following snippet:

add_filter( 'slim_seo_skipped_blocks', function( $blocks ) {
$blocks[] = 'namespace/your-block-name';

// Another block.
$blocks[] = 'namespace/your-2nd-block-name';

return $blocks;
} );

You can also use the opposite filter slim_seo_allowed_blocks to filter the list of allowed blocks:

add_filter( 'slim_seo_allowed_blocks', function( $blocks ) {
return array_filter( $blocks, function( $block ) {
// Do not allow blocks start with "my_prefix"
return ! str_starts_with( $block, 'my_prefix_' );
} );
} );

Unlike slim_seo_allowed_shortcodes, the slim_seo_allowed_blocks accepts a numeric array of blocks, where each element is a block name.

If you want to allow only core blocks, use the following snippet:

add_filter( 'slim_seo_allowed_blocks', function( $blocks ) {
return array_filter( $blocks, function( $block ) {
return str_starts_with( $block, 'core/' );
} );
} );