Change title of WP Welcome dashboard widget

I am looking to change the wording in the default WP "Welcome" widget in dashboard. The title to be exact - the word "WordPress" should be changed to "Variotik".

  • Abdul Wajed
    • Staff

    Hey Variotik,

    Hope you are well and thanks for the question!

    You can change the wording in the default WP "Welcome" widget in dashboard by adding below code to the functions.php of your theme:

    function aw_change_welcome_admin_title() {
      echo '<style>
      .welcome-panel h2 {
        font-size: 0;
      }
    .welcome-panel h2:after {
        font-size: 21px;
        display: block;
        content: "Welcome to Variotik!";
      }
      </style>';
    }
    
    add_action('admin_head', 'aw_change_welcome_admin_title');

    The best way is to use child theme, otherwise you will lose the code on a theme update.

    Hope this helps.

    Thanks,
    Wajed

    • Abdul Wajed
      • Staff

      Hey Variotik,

      Hope you are well and thanks for your feedback!

      You can try Admin CSS MU and it works for multisites. After activating the plugin just add below CSS to the panel Appearance > Admin CSS MU

      #welcome-panel h2 {
      	font-size: 0;
      }
      
      .welcome-panel h2:after {
      	font-size: 21px;
      	display: block;
      	content: "Welcome to Variotik!";
      }

      Hope this helps.

      Thanks,
      Wajed

        • Abdul Wajed
          • Staff

          Hey Variotik,

          I hope you are well today. :slight_smile:

          Is there any way without plugin?

          You could do this with a mu-plugin though. Simply create a file called functions.php & upload it to wp-content/mu-plugins using FTP (If mu-plugins folder doesn't exist create it) and add the following to the functions.php

          <?php
          // Add items to admin head!
          function aw_change_welcome_admin_title() {
            echo '<style>
            .welcome-panel h2 {
              font-size: 0;
            }
          .welcome-panel h2:after {
              font-size: 21px;
              display: block;
              content: "Welcome to Variotik!";
            }
            </style>';
          }
          
          add_action('admin_head', 'aw_change_welcome_admin_title');

          Hope this helps. Please let me know if you need any further assistance. :relaxed:

          Have a nice day.
          Cheers!
          Wajed

    • Abdul Wajed
      • Staff

      Hey Variotik,

      I hope you are well today. Sorry for late response. :slight_smile:

      I have just checked your site and can see that solution working fine on your main site (See the screenshot). But the screenshot you shared may be from one of your network site. I tried to log into your site from network but I can't. So, can you share credentials of that site so that I can look into the issue and provide you more appropriate solution?

      To do that please visit our private Contact page and complete the form with the following information: https://premium.wpmudev.org/contact/#i-have-a-different-question

      Subject: "Attn: Abdul Wajed" In the Message box, please provide the following:

      - link back to this thread for reference
      - any other relevant urls

      - Admin login:
      Admin username
      Admin password
      Login url

      Best regards,
      Wajed

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.