Genesis Favicon Issues

Community Forums Forums Design Tips and Tricks Genesis Favicon Issues

This topic is: not resolved

This topic contains 19 replies, has 9 voices, and was last updated by  Erin Ulrich 10 months, 2 weeks ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #64158

    burnettsboards
    Participant
    Post count: 31

    So I replaced the black G (Genesis favicon) with my own – seems to work on browsers etc. However, with Pinterest’s rich snippets it is still appearing as the black G – any advice? Example: http://www.pinterest.com/pin/47850814764116768/

    Rich snippets just sort of happened for me – I did nothing to set them up etc – must just be a part of the theme?

    Child theme I’m using is Pretty Young Thing.

    http://burnettsboards.com
    #64159

    Anita
    Participant
    Post count: 7578

    I always copy it into multiple locations as my own best practice. I copy it into the Genesis Framework images folder, my child theme image folder and I also copy it into my root folder. Keep in mind, when Genesis is updated – it may overwrite it though.


    When asking for help, please provide a link or screen shot showing your problem!
    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me!

    #64171

    burnettsboards
    Participant
    Post count: 31

    Yea I definitely replaced the favicon in all three places…

    #64325

    dev
    Participant
    Post count: 453

    This code has never failed me pre- 2.0. I think it will still work in 2.0:

    // Load custom favicon
    add_filter( ‘genesis_pre_load_favicon', 'custom_favicon_filter’ );
    function custom_favicon_filter( $favicon_url ) {
    return 'http://www.mydomain.com/wp-content/images/favicon.ico‘;
    }

    #64437

    burnettsboards
    Participant
    Post count: 31

    Where should I put that? If in the functions.php file – does it go in the genesis functions or the child theme, and once there – where abouts in there?

    Mahalo!

    #64456

    dev
    Participant
    Post count: 453

    Just put it at the end of functions.php. Of course you need to create a favicon.ico file and put it somewhere (i.e. like in images folder or just in the web root or anywhere you like) and put in the appropriate path to that file. As long as you code the URL correctly, it should work on all browsers.

    #64721

    burnettsboards
    Participant
    Post count: 31

    Which functions php? Gensis or the child theme I’m using?

    #64730

    dev
    Participant
    Post count: 453

    The child theme.

    Works like a charm so long as you code the URL of the favicon correctly.

    Using other methods works with some browsers but not others. And you also have to often wait for a cache to clear. But when you put it in the code, it works each and every time. Never fails… unless they have done something in Gen 2.0 to mess it up… but I doubt it. I think I’ve tried it with 2.0… don’t remember. I’m sure someone here will give it a go with 2.o and report back.

    Dev

    http://www.NewMediaWebsiteDesign.com

    #64929

    burnettsboards
    Participant
    Post count: 31

    Pasted that on my test site and it did this: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home3/burnett/public_html/SparkleAndLight.com/wp-content/themes/pretty/functions.php on line 105

    #64974

    dev
    Participant
    Post count: 453

    What exactly did you paste?

    Or maybe you missed a quote mark (must be regular quote mark, not a “smart” quote.

    Hint: First past the code into a text editor like Notpad or whatever you use (NOT a wordprocessor). Then copy it from there and paste it in your code.

    You might have left out the final semi-colon?

    #65960

    slew00
    Participant
    Post count: 1

    I got the same problem that burnettsboards got. You’d think Genesis would have an EASY way to change the favicon, or, even better, NOT change the site’s favicon. Such a PITA to switch it back. WTF guys. This is a paid program. I shouldn’t have to paste code anywhere to RESTORE my favicon.

    Seems like Genesis could just put a line in that says “Where’s your favicon?” and a normal person could just paste in the path to the icon. Why hasn’t that happened? Why is Genesis replacing a sites’ favicon with their own?

    #65973

    dev
    Participant
    Post count: 453

    You should be able paste this type of HTML:

    <link rel=”icon” type=”image/ico” href=”http://www.mysite.com/favicon.ico”/>

    into the ‘header’ box in Genesis and it should work.

    I use code at the end of functions.php of the theme and so far have not had any problems with it.

    #66022

    Summer
    Participant
    Post count: 1071

    Both Firefox and Chrome are notorious about caching favicons, and literally I’ve had to make sure that when I update a site, I update the main and the child theme favicons before I switch themes, else I have no choice but to shut down my browser and restart to get the default Genesis icon to clear out.

    That is one thing I like about some of the ZigZag themes, they give you a place to load up your favicon if you’re not the type who likes to go digging thru code or replacing images :)


    #66053

    dev
    Participant
    Post count: 453

    That is so true with FF and Chrome. This is why so many people like to use code (assuming you can get it to work!) because it eliminates the caching issue with favs.

    #66692

    Boots
    Participant
    Post count: 5

    I am having the same issues above. Any one know the best way to change the favicon?

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.