Okay
  Public Ticket #3244083
theme blocking rankmath TOC customize
Closed

Comments

  • mstfmhc started the conversation

    Hello, 

    I wrote this ticket to rank math:

    "Hello, in my websites i cant see some settings in this video https://www.youtube.com/watch?v=N2SHiY6pBwg like margin padding or some font settings. https://imgur.com/a/XQu9mmA

    Did you update TOC and we cant see those settings more?

    Also my jump links automatically add strong word beginning and end. like #strong-tahliye-taahhutnamesi-orneginde-dikkat-edilmesi-gerekenler-strong"


    And they answered this: 

    "Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Those settings only appear on themes that include full support for those functionalities. Your theme is not supporting those so we cannot display them and make them available in the TOC block.

    The theme creators can reference this guide from WordPress to include support for all the features: https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/

    You can test the same by activating the default WordPress theme which includes support for this and you’ll see all the options.

    As the theme is not allowing to edit it, please do open a support ticket with them.

    As far as, “strong” on jump links are concerned, would you please share affected URLs so that we can check on that. Having said that, these modifications are done from the theme developer."

    What can you do about this? I need to customize TOC settings.

  •   mstfmhc replied privately
  • [deleted] replied

    Hi mstfmhc,

    Sorry for the late reply. Somehow your ticker was marked as read and I found it by accident.

    I will assign this ticket to our main developer (Arlind) so he can check this. But in the meantime please share your WordPress and FTP login credentials. To safely include your credentials click the Insert Credentials button in the editor toolbar (see how)

    Thanks!

  •   mstfmhc replied privately
  • [deleted] replied

    Hi,

    I have added theme.json file in kalium-child-law folder to enable advanced options in block editor:

    {
        "$schema": "https://schemas.wp.org/trunk/theme.json",
        "version": 2,
        "settings": {
            "appearanceTools": true
        }
    }

    And also added this code in functions.php:

    medium
    (view large image)

    Now more settings appear in sidebar:

    medium
    (view large image)

    I hope this works fine for you.



  • mstfmhc replied

    thank you. first when update theme, will changes delete? what can i do if i dont want that it will delete?

    second, when doing this, gutenberg editor apperiance changed, broken. i am sending at the attachment. also sending one of normal gutenberg editor you can see differences.

    and one of person who has same problem here: https://wordpress.org/support/topic/problem-with-gutenberg-styles/ . somebody answer like that Your theme needs to opt-in to editor styling. In particular take note of the Editor Styles section of the linked page, but the entire document will be of interest to you.

  • mstfmhc replied

    hi, any update?

  • [deleted] replied

    Hi,

    I am sorry but when adding theme.json automatically disables styling of Gutenberg assuming that theme will add the style to it. Current version of Kalium does not support theme.json but in Kalium 4 we have incorporated theme.json and block styles which will be supported.

    For now, I have added a different code snippet to enable custom styles which does not break the current Gutenberg style:

    // Enable custom block styling
    add_filter(
        'wp_theme_json_data_theme',
        function ( $wp_json_data ) {
            $wp_json_data->update_with(
                [
                    'version'  => 2,
                    'settings' => [
                        'border'     => [
                            'color'  => true,
                            'radius' => true,
                            'style'  => true,
                            'width'  => true,
                        ],
                        'color'      => [
                            'link' => true,
                        ],
                        'spacing'    => [
                            'blockGap' => true,
                            'margin'   => true,
                            'padding'  => true,
                        ],
                        'typography' => [
                            'lineHeight' => true,
                        ],
                    ],
                ]
            );
            return $wp_json_data;
        }
    );

    I have added the above code in functions.php of child theme. Whenever you update the theme this code won't be lost so don't worry about it.

  • mstfmhc replied

    thank you. i guess after kalium 4 i will not need that code?


    Also i want something more please. At the attachment i changed height of lines 30px from typography section.

    But now i wanna change height of paragraphs. between two paragraph i want more line how can i do it?

    Thank you again.

  • mstfmhc replied

    Hello, i tried to make border and change color of border of table of content. There is no option like that. Maybe we missed something?

  • [deleted] replied

    Hi mstfmhc,

    Yes, you don't need that code anymore when Kalium 4.0 is released.

    Regarding your further questions, kindly open a new ticket and post your request so it will be helpful for the other users to take advantage of searching them on the forum. We’re glad to help you in your new thread.

    Will set this ticket as solved from here.