How to select a specific page
I'm having an issue selecting a page.
There are guides that tell you how to find the page ID and I just couldn't find it in the admin panel to figure out what the page ID is. If only there was a way to search by slug in the admin panel that would be great.
the other way was to look at the elements which worked beautifully for me.
I used that and that worked great!
$classes = get_body_class();
if (in_array('page-magazine', $classes))..
Unfortunately I was told that this isn't good practice and got rejected.
Could anybody suggest a better way to target a specific page?
Topic wp-blog-header.php pages Wordpress
Category Web