Viewing 1 to 6 of 6 items
Tag Archives: if

Sidebar menu with a child pages regardless of depth – WP Engineer

This article was taken from WP Engineer: In this article I want to show an example in which are the main pages in a horizontal navigation. The related sub-pages are displayed in the sidebar when you click on the main page. For better understanding we take the following page structure: Home Software Image Editor  Full Article…


Conditional CSS with PHP

I used this snippet of code to set a different css class or id based on the page template. It could be modified to be conditional based on being the the home page as well. Also note that is had to be put in the code/document as a single line for it to work…..don’t know  Full Article…