As a part of my blog series I'll try to share the things I've learned so others can have it a little easier.
Here's the first installment.
After searching for three months on how to create a pages tab in blogger that links to an external site instead of a blogger generated page, I finally found a hack.
I'm very excited because instead of my galleries tab taking you to some crappy page that lists links to my actual galleries, which are hosted on a site different from Blogger, now the pages tab actually takes you directly to my galleries. This makes for a much more professional looking site.
So here's the blogger pages template hack (and the site I got it from) -
1. Be sure to save your original blogger template just in case something goes wrong. I even went so far as to copy and paste the HTML from my original pages onto Text Edit pages just in case.
2. Go to Blogger dashboard > Design > Edit HTML. DO NOT click on Expand Widget Templates
3. Use CMD + F and look for:<b:widget id='PageList
<b:includable id='main'>
<div class='widget-content'>
<ul>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<li class='selected'>
<a expr:href='data:blog.homepageUrl'>Home</a>
</li>
<b:else/>
<li><a expr:href='data:blog.homepageUrl'>Home</a></li>
</b:if>
<b:loop values='data:links' var='link'>
<b:if cond='data:blog.url == data:link.target'>
<li class='selected'>
<a expr:href='data:link.target'><data:link.name/></a>
</li>
<b:else/>
<li><a expr:href='data:link.target'><data:link.name/></a>
</li>
</b:if>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
Save the template. It will say your template does not include Page List and gives you the option to keep the Page List. Keep it for now.
5. Go to Design> Page Elements and add your links to your new "Menu" gadget. I copied and pasted the links to the blogger pages I wanted to keep and added the new link code for my galleries. (If you don't see your new Menu gadget something went wrong. You can check the html code here.)
6. Finally, click "edit" on the Pages widget and delete. You now have a new set of tabs!
Thanks a lot Aaron. You probably saved me from a long boring night.
ReplyDeleteYour welcome, Steve. Glad I could help.
ReplyDeleteAaron,
ReplyDeleteGreat post man. It was easy to follow and I did it all in under 10 minutes. You can check out my blog to see how I used it. I have a second blog that I wanted to link to (the 'Fishing' tab), so I used your solution to include 4 blogger pages and one external link to my other blog. check http://www.adventurejo.com
Keep up the good work.
Joel (Adnveturejo)
WONDERFUL!!!!! Finally after searching all over creation for how to do this, Aaron you made it so simple and I LOVE IT!!!! I wanted my blog to have some website elements to it and this certainly helped. I'm bookmarking you dude! :)
ReplyDeleteKim
Treats of Sweets (http://treatsofsweets.blogspot.com)
Thanks Joel and Kim. Happy I could help! I'll try to post some more blogger hacking tips soon.
ReplyDeleteThank you thank you thank you!
ReplyDeleteTHANK YOU SOOOO Much for this! Worked perfectly & I did it in no time at all. Thank you!!
ReplyDeleteAlmost a year later and it still works, thanks!!!
ReplyDeleteI've been trying for the longest time to figure out how to do this. Finally found your info and it was easy to understand and to do. Worked perfectly! Thanks for sharing the info!
ReplyDelete