- This topic has 5 replies, 3 voices, and was last updated 3 years ago by
Fernando.
-
AuthorPosts
-
March 9, 2023 at 9:40 am #2561876
Dan
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.
March 9, 2023 at 9:57 am #2561898David
StaffCustomer SupportHi 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.March 9, 2023 at 10:18 am #2561925Dan
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.
March 9, 2023 at 5:22 pm #2562233Fernando Customer Support
Hi Dan,
You’ll need custom CSS for the margin for now.
See David’s response in this thread as well for more information: https://generatepress.com/forums/topic/possible-rank-math-table-of-contents-block-conflict-with-generatepress/#post-2469286
If you’ll need assistance with regard to the CSS, let us know.
March 9, 2023 at 5:57 pm #2562253Dan
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.
March 9, 2023 at 6:09 pm #2562264Fernando Customer Support
You’re welcome, Dan! Have a nice day!
-
AuthorPosts
- You must be logged in to reply to this topic.