Site logo

Archived topic

Rank Math Block Issue

5 replies · Started by Dan on March 9, 2023

Viewing posts 1–6 of 6

I use the Rank Math SEO plugin. They have a block to add a table of contents to a post, but when I'm running Generatepress as the theme, some of the block customization options do not load. It is missing the link colour attribute and also the dimensions settings, which allow you to add padding and margins.

When I disable Generatepress and go to TwentyTwentyThree theme, all of the options become available.

Details about the TOC block are here: https://rankmath.com/kb/table-of-contents-block/

They do mention that the link colour feature might need to be added by the theme developer, but there's no mention of that for the dimensions section.

Hi there,

you can add this PHP Snippet to add theme support for custom spacing:

add_theme_support( 'custom-spacing' );

But the link color requires theme.json, which to add that to a PHP theme like GP would take custom development.
Instead it would be easier to treat it with CSS. If you can share a link to where i can see it, then i can assist with that.

Re: Link colour - no worries, I'll do that with CSS. I can manage that.

Re: Dimensions - I added the snippet, and it does now show a dimensions panel, but it only has padding within it and not margin. Is there any theme-based reason that would be the case? The Rank Math article shows that it should have adjustable padding and margins.

Ok, thanks. Don't really understand the difference between all these things and why this is happening, but I'll trust you and just do it with CSS. No help needed with the CSS.

You're welcome, Dan! Have a nice day!

This archived topic is closed to new replies.