Customize your MainWP Dashboard logo using PHP code snippets in the free Custom Dashboard extension. You can change the logo image, the URL it links to, and its alt text.
What You’ll Learn
- Replace the default MainWP logo with your own
- Change where the logo links to
- Update the logo alt text for accessibility
Prerequisites
- MainWP Dashboard installed
- Custom Dashboard extension installed (free)
- A logo image (recommended size: 168x35 pixels)
Available Hooks
These hooks let you customize different aspects of the logo:| Hook | Purpose |
|---|---|
| mainwp_menu_logo_src | Change the logo image |
| mainwp_menu_logo_href | Change where the logo links to |
| mainwp_menu_logo_alt | Change the alt text |
Change the Logo Image
Install the Custom Dashboard extension
Install the Custom Dashboard extension.
Upload your logo
Upload a 168x35px image to your WordPress Media Library or via FTP to your Dashboard site.
Add the code snippet
Navigate to the Custom Dashboard extension and add this snippet to the PHP tab:

Update the image path
Change
/wp-content/uploads/logo.png to your actual image location.To verify the path works, temporarily use a full URL like
https://your-dashboard.com/wp-content/uploads/logo.png. Once confirmed, switch back to the relative path.Change the Logo Link URL
By default, the logo links to the MainWP Overview page. You can change this destination.Change the Logo Alt Text
Update the alt text for accessibility and SEO.Self-Check Checklist
- Custom Dashboard extension installed and active
- Logo image uploaded to Dashboard site
- Code snippet added with correct path
- Changes saved
- New logo displaying correctly
Related Resources
- Custom Dashboard Extension - Full extension documentation
- Dashboard Themes - Switch dashboard visual themes
- White Label Extension - Complete branding solution

