Can someone help tweak a couple of code lines?

Would you be able to help if I need commit to using a similar structure for my pages?