Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the icon image displayed next to the webpage title #454

Closed
rort1989 opened this issue Feb 2, 2018 · 9 comments
Closed

Change the icon image displayed next to the webpage title #454

rort1989 opened this issue Feb 2, 2018 · 9 comments

Comments

@rort1989
Copy link

rort1989 commented Feb 2, 2018

Hi,

Is there any way to change the icon image displayed next to the webpage title? By default, it shows a doctoral hat.

A similar question is described in here. But I don't know where to apply these changes in Academic theme.
https://stackoverflow.com/questions/11488960/how-do-i-put-my-websites-logo-to-be-the-icon-image-in-browser-tabs

@gcushen
Copy link
Collaborator

gcushen commented Feb 3, 2018

This feature is documented here: https://sourcethemes.com/academic/docs/customization/#website-icon

@gcushen gcushen closed this as completed Feb 3, 2018
@savem14
Copy link

savem14 commented May 16, 2018

After updating & saving icon.png & icon-192.png to static/img/ in root the icon is still a doctoral hat. I have tried updating in the theme root as well as website root & still not updating. I have tried re-loading the hugo site & still not updating. Am I missing something in the sourcethemes documentation?

@rort1989
Copy link
Author

rort1989 commented Jun 3, 2018

Try placing the icon.png & icon-192.png in the public/img, where the 'public' folder is the one to be deployed on the server. I got the 'public' folder by executing command 'hugo' at my site root directory. Clear browser when you view the new site.

@dbieber
Copy link

dbieber commented Aug 17, 2019

I had this issue too. For me the problem was that the documentation says to add files icon-32.png (32x32 pixels), icon-192.png (192x192 pixels), and icon-512.png whereas in reality I needed to add a file named icon.png that was 32x32.

By adding a file named icon.png (32x32) I resolved my issue without ever needing to manually update the public folder.

Edit: This is because the documentation is for the latest version, whereas I was using an older version of Academic.

@krionical
Copy link

krionical commented Sep 18, 2019

Same problem here, and none of the above fixes worked. When I ran hugo, it threw an error about the alert in publications.md also not functioning and I had to comment it out.

Edit: So I finally got it after three hours of messing around with it. The final solution involved having the public folder as well as the static folder and then modifiying the line in params.toml where it says sharing_image = "icon-32.png". I did all of this before without the public folder with the name being as I have here stated it, and it didn't work. Somewhere, this apparently makes that part work.

@jcolomb
Copy link

jcolomb commented Nov 20, 2019

Also be sure you actually saved a .png files and not a different type of file named icon-32.png

@jrwrigh
Copy link

jrwrigh commented Jan 28, 2020

This still does not work with me. Also, with my current site deployment system, I don't have an easy way of simply adding the file to the public directory.

Edit: Make sure you can spell assets correctly... That might help. Heard from a friend.

@jazclick
Copy link

jazclick commented Sep 8, 2020

Logo of Hugo theme is not friendly even i try to create /partial/logo.png does not upload new logo. Dashboard panel is https://app.forestry.io/ is easy to navigate to problem i am stock is changing the logo. Cannot find the right dir. Need help ? Other tutorials say /static/images/logo.png stil doesn't work at all.

@stineb
Copy link

stineb commented Dec 18, 2022

ifiying the line in params.toml where it says sharing_image = "icon-32.png". I did all of this before without the public folder with the name being as I have here stated it, and it didn't work. Somewhere, this apparently makes that part work.

The link to https://sourcethemes.com/academic/docs/customization/#website-icon is dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants