Does anyone know the php code to check if you are in edit mode? I want to edit how my theme looks when in edit mode so need to work out if I am or not.
You can check url arguments as shown here.
if(arg(0) == 'node' && arg(2) == 'edit'){ /*...*/}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With