• Resolved Ty

    (@tyranthacker)


    Could you rename the name used in the side menu from

    “TinyPNG – JPEG, PNG & WebP image compression”

    to “TinyPNG” or “Image Compression”

Viewing 1 replies (of 1 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Hi there,

    Thanks for getting in touch! We appreciate your feedback regarding the length of the plugin title, and we have added it to our list of improvements to consider.

    For now, it’s possible to change the plugin title in your setup. Here is an article on how to do so:
    https://stackoverflow.com/questions/34049759/how-rename-a-plugin-title-wordpress-dashboard

    If you would like to change the plugin title to “TinyPNG”, you can copy the following code and add it to wp-admin>includes>admin.php

    function rename_header_to_logo( $translated, $original, $domain ) {
    
    $strings = array(
        'TinyPNG - JPEG, PNG & WebP image compression' => 'TinyPNG',
        'Custom Header' => 'Custom TinyPNG'
    );
    
    if ( isset( $strings[$original] ) && is_admin() ) {
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
    
      return $translated;
    }
    
    add_filter( 'gettext', 'rename_header_to_logo', 10, 3 );
    

    Please feel free to give this method a try!

Viewing 1 replies (of 1 total)
  • The topic ‘Rename Side Menu Name’ is closed to new replies.