2016-01-28, 03:56:15
I want to show a client different header designs. I think the ideal solution would be adding a class to the body tag. get_page_slug is already there so I how can I utilize that for my purpose?
From what I understand so far in my very little PHP I could possibly use an if else to return the page slug but how do I convert that to a class? My PHP is very limited
or is there another option?
thanks for your help.
From what I understand so far in my very little PHP I could possibly use an if else to return the page slug but how do I convert that to a class? My PHP is very limited
or is there another option?
thanks for your help.
I'm no Einstein, nor do I profess to be. Just saying what I would try in the circumstances.