Removing or changing the text "In this section" on the sidebar

  • etype

    #49122

    Hi!

    As said, I want to either remove the text “in this section” in the sidebar. This while keeping the actual page navigation. I know there is a option to disable the navigation bar to the right, but I just want to change that text.

    Is this possible? Thanks!

    Mabul

    #49129

    Try this to change text:

    function graphene_filter_inthissection( $translated, $original, $domain ) {
        $strings = array(
            'In this section' => 'Your text here',
        );
        if ( ! empty( $strings[$original] ) ) {
            $translations = &get_translations_for_domain( $domain );
            $translated = $translations->translate( $strings[$original] );
        }
        return $translated;
    }
    add_filter( 'gettext', 'graphene_filter_inthissection', 10, 3 );

    And this to remove text:

    .section-title-sm {
    display: none
    }

    etype

    #49132

    The first code didn’t work. I pasted it in the Extra CSS at the bottom of the live-preview admin page. I get a bunch of errorrs.

    This it what it looks like https://imgur.com/JXR2LTO

    The second code worked to remove the text however.

    Cheers!

    Admin

    Syahir Hakim

    #49134

    The first code didn’t work. I pasted it in the Extra CSS at the bottom of the live-preview admin page. I get a bunch of errorrs.

    The first code should be placed in a child theme’s functions.php file as it is a PHP code, not CSS code. We’ll add an option to customise the text in the next theme update.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.