my-hacks.php is created by you, yes, and using it requires nothing more than creating it, and putting some php in it. The file also needs to go in the root of your WP install, ie, where your wp-config.php is.
One other thing you do need to do though, is enable it in your wp-admin area. It should be under Options –> Miscellaneous:
Use legacy my-hacks.php file support
Thread Starter
WhyNot
(@whynot)
Ok, thank you. When you say “use legacy my-hacks.php file support” … what does it mean exactly?
I’m no php programmer, but there are a few things which, when I see a php file I can hope, praying hard, to modify, and many others where I have no clue whatsoever.
I am hoping with something with some examples of code. I tried to fiddle around with the 2 lines in the kses.php files, leaving the first one alone, and trying to copy bits and pieces of it to the second line, and even tried to copy the entire first line replacing the second line with it but causes the blog to start with an error on line such and such.
What I am getting at is that if there isn’t some kind of basic tutorial on the syntax to do what I want, I will be helpless.
I mostly want to be able to give commenters the ability to add pictures (img src= ….) , font size choice, and ordered/unordered lists.
I would be interested in an example my-hacks.php file that adds back the class and styling.
thanks,
nada