Skip to main content
Add a “Go to site” icon column to the Manage Sites table for quick access to child site front pages. This icon takes less space than displaying the full URL and works well on mobile devices.

What You’ll Learn

  • How to add a site link icon to the Manage Sites table
  • How to position the column for mobile visibility

Prerequisites


Add the Go to Site Icon

1

Install Custom Dashboard

Install the Custom Dashboard extension.
2

Open the extension

Navigate to MainWP > Add-ons > Custom Dashboard.
3

Add the PHP code

Go to the PHP tab and add this code:
add_filter( 'mainwp_sitestable_getcolumns', 'mycustom_mainwp_sitestable_getcolumns', 10, 1 );
function mycustom_mainwp_sitestable_getcolumns( $columns ) {
    $columns['front_page_link'] = '';
    return $columns;
}

add_filter( 'mainwp_sitestable_item', 'mycustom_mainwp_sitestable_item', 10, 1 );
function mycustom_mainwp_sitestable_item( $item ) {
    $item['front_page_link'] = '';
    return $item;
}
4

Save changes

Click Save Changes.

Position the Column

1

Go to Manage Sites

Navigate to MainWP > Sites > Manage Sites.
2

Verify the column appears

The new icon column should appear in the table.Manage Sites table showing the new Go to site icon column
3

Drag to reposition

Drag and drop the column header to your preferred position. Place it near the beginning to keep it visible on mobile devices.Mobile view of Manage Sites table with Go to site icon visible

Why Use This

BenefitDescription
Saves spaceIcon takes less width than displaying the full URL
Mobile-friendlyVisible without expanding the row on mobile
Quick accessOne click opens the site in a new tab
Clean interfaceReduces table clutter

Self-Check Checklist

  • Custom Dashboard extension installed
  • PHP code added and saved
  • New column visible in Manage Sites table
  • Column positioned as desired
  • Icon opens site in new tab when clicked