How to Add Your Own Logo to the inLine Theme
In this tutorial, we will learn how to add in your own custom logo to the inLine theme. Follow the instructions below:
- Make sure you have created a child theme. You can get instructions and the sample child theme here.
- Title your logo “logo.png” and place it in the
imagesfolder of your child theme. - Add the following code to your child theme’s style.css file:
#logo { text-indent: -9999px; width: 121px; height: 26px; background: url('images/logo.png') no-repeat scroll 0 0; } #logo a { display: block; outline: none; width: 121px; height: 26px; } - Save your
style.cssfile and reload your site! Your logo will now appear in place of the text.
Change the width and height of the above to the width and height of your own logo. You may need to adjust the padding in the navigation menu based on the height of your logo to get everything aligned correctly. You could place the following in your style.css file as well:
#navigation .menu li a { padding-bottom: 30px; }Just change the padding at the bottom so that it will align the with bottom of the header. Enjoy!
Get the Latest Tutorials Delivered to Your Email Inbox!
Never miss out on another awesome tutorial! Enter in your information below.
0 Comments