• In my WordPress multisite network I have hidden the visual customizer from the dashboard (I have my reasons).

    However, I would like to utilize the new WordPress Site Icon functionality to allow my users to easily add a favicon to their sites on the network.

    Anyone have any ideas how I could possibly add that same functionality into a traditional dashboard admin screen?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I’ll need to actually try this and figure out the specifics but presumably the site icon is just an entry in the database so a plugin with an options page and a function to update that database entry should do the trick.

    I may very well put this together after I eat dinner here in a bit.

    Okay, so in wp_options you’ll find site_icon with an integer that’s just a reference to the ID of the image in the media library. Messing with this should be really easy. What will presumably be more difficult is adding the upload interface with the cropping and whatnot (hypothetically this could be ripped out of an older version of Jetpack).

    So, get_option('site_icon') and update_option('site_icon', $image_id) seem to work well enough. Should be trivial to whip up an options page for it (or append it to another options page). Shouldn’t be terribly difficult to add some validation for size/type/etc or the ability to use the media library.

    Howdy,

    I had the same issue, so I went ahead and tore down and modified the old Jetpack site icon module and made a standalone plugin to move it to the general settings screen.

    If you’re still in need – try it out and let me know if it works well for you.

    https://wordpress.org/plugins/move-site-icon-to-settings/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I sit possible to move the Site Icon manager out of the customizer?’ is closed to new replies.