mchung / heroku-buildpack-wordpress

Heroku buildpack: Wordpress on Heroku
mchung.github.com/heroku-buildpack-wordpress/
388 stars 333 forks source link

Add favicon? #22

Closed c0nn0r closed 11 years ago

c0nn0r commented 11 years ago

Loving this buildpack!

One issue - any idea how we can add a favicon?

thx.

fmsiddiqi commented 11 years ago

I got one working by putting one in the /config/public folder where the wp-config.php file is.

c0nn0r commented 11 years ago

Thx for the tip.

I put the favicon.ico into the /config/public folder and pushed - it's not working for me yet.

I noticed that in the file header.php in my theme pack - for me, located in /config/public/wp-content/themes/hardy/header.php - there is a reference to

<?php if (of_get_option('ttrust_favicon') ) : ?>
    <link rel="shortcut icon" href="<?php echo of_get_option('ttrust_favicon'); ?>" />
<?php endif; ?>

Is there anything I need to do in here to get the favicon working?

c0nn0r commented 11 years ago

It's working now. I added this line to my header.php

<link href="/favicon.ico?v=3" rel="shortcut icon" type="image/png" />