Nid yw'r ategyn hwn wedi cael ei ddiweddaru ers 3 ryddhad mawr. Efallai nad yw'n cael ei gynnal bellach ac efallai bod materion cydnawsedd wrth gael ei ddefnyddio gyda fersiynau mwy diweddar o WordPress.
With newer version of WordPress you may need to use the following which will leave the Toolbar available in the Dashboard but hide it on all front facing pages.
Does exactly what it says it does. Only problem is that it also seems to disable the dashicons font which I need in my theme.
EDIT: Actually, it was my fault. I hadn't enqueued the dashicons font properly. This plugin actually helped me fix an issue I didn't even know I had!
If anyone else is wondering how to properly use the dashicons font in your frontend, this is the article that helped me out: