WordPress theming: building from scratch
I have been helping a friend of mine Diana Nichols with a Meetup in Marietta. Last week I helped walking through people creating a child theme. The video isn’t stellar, but I figure I might as well get this on my site. Session One covers setting up a development environment such as MAMP or WAMP. […]
If is this page or is child of it
A client of mine needed to display a certain HTML element (a social media icon) only on certain pages and children of those pages. Put this in your functions.php file: function ar_check_family( $page_id ) { global $post; if ( is_page() && ( $post->post_parent == $page_id || is_page( $page_id ) ) ) { return true; } […]