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

How to change the Header Title? #36

Closed
abhiklodh opened this issue Jul 22, 2015 · 2 comments
Closed

How to change the Header Title? #36

abhiklodh opened this issue Jul 22, 2015 · 2 comments

Comments

@abhiklodh
Copy link

Lame question - i tried editing the midnight.js website(of aerolab obviously) and had a hard time changing the title (you know the "MIDNIGHT.JS" with a moon) to my choice but in vain.

Really accept some help.
Ty ahead

@abhiklodh
Copy link
Author

I need help on generating the image the way it is actually there in the site
logo.png file. (sorry can't upload it)

@RobertoGonzalez
Copy link
Member

@abhiklodh You can use pretty much any valid HTML for the header. The logo in http://aerolab.github.io/midnight.js/ is actually implemented as a background for the a.logo element (styles.css:118), and that's why you aren't seeing any markup.
It's done that way to load a single (quite large) image and cycle through all the available logos with background-position. It's to make the site load a tiny bit faster but you don't necessarily have to do that for the plugin to work.

You can do the same thing but instead of messing with background-position you can just change the background-image for each header instead.

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

2 participants