• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Front End and Back End Favicons – The Code

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Front End and Back End Favicons – The Code

This topic is: not resolved

Tagged: admin and front end, Favicon, functions.php

  • This topic has 3 replies, 4 voices, and was last updated 10 years, 9 months ago by Summer.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 19, 2015 at 11:38 am #162866
    ScottFromPA
    Member

    Guys,

    I thought I'd post the code I use to post custom favicons for both the front end and back end.

    /** Favicon Back **/
    function favicon(){
    echo '<link rel="shortcut icon" href="your server path to the back end favicon">',"\n";
    }
    add_action('admin_head','favicon');
    
    /** Favicon Front */ 
    add_filter( 'genesis_pre_load_favicon', 'custom_favicon' ); 
    function custom_favicon( $favicon_url ) {         
    	return 'your server path to the front end favicon'; }

    I use browser tabs during development and it's important to visually understand which is a front end vs admin tab. It's a efficiency thing. I've been using the All in One Favicon. The developer walked away from it so I'm using this now.

    I imagine there's a better way to code this.

    August 19, 2015 at 12:15 pm #162875
    Brad Dalton
    Participant

    Here's another method http://dreamwhisperdesigns.com/genesis-tutorials/change-default-genesis-favicon/


    Tutorials for StudioPress Themes.

    August 19, 2015 at 9:46 pm #162945
    coralseait
    Member

    We use a different method to achieve broad support across many resolutions and devices; waiting for customizer dust to settle a bit before we update it for that.

    http://www.coralseait.com/changing-the-genesis-framework-favicon-a-better-way/


    Coral Sea IT

    August 20, 2015 at 12:07 am #162956
    Summer
    Member

    FWIW, I had started using the tool at http://realfavicongenerator.net then uploading the resulting package of images and adding the code to the Header scripts section.

    No messing with template code, no need to add images to a themes image folder.


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble