#100DaysofCode – PHP edition

I switched The Whisker Shop over to use some PHP. Originally (and part of my WD4E capstone), it was HTML, CSS, and a little JS, but I wanted to keep the JS to a minimum, so it still involved a lot of repetition, copying and pasting the same code between pages, which was just annoying and antiquated.

So I put down some PHP, created a whole separate header file for the nav bar, and updated everything. I also removed the JS Lightbox from the gallery, because a Lightbox for 6 pictures felt a little silly. The site loads a lot faster now, too, although I still plan on making the photos load faster in the future, and finding a more attractive way to display that gallery page. Front-end isn’t my forte but enough people have done so many beautiful things before me, that I’m confident I can make this even prettier.

In the shorter term, I plan on updating the nav bar with a pure-CSS drop-down menu.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.