WordPress Child Themes (ignoring template-tags.php)

Creating child themes isn’t that hard after all and makes automatic theme updates possible without too much worry.

When I set up this site initially, I introduced some changes to the header and footer in their respective php files. Child themes were always an option, but I never used them because I didn’t want to bother with them. There are only a few changes, so I could easily address them when a theme update comes around.

Alas, this is annoying and so I finally created a child theme for twentysixteen. And as it turns out, it wasn’t very hard after all. I just created a folder twentysixteen-child in my WordPress theme folder and added these files:

Continue reading “WordPress Child Themes (ignoring template-tags.php)”

Random Quotes from File (PHP Script)

I wanted to show random lines from a list instead of a static tagline on top of the Homepage. I was searching for a while but only found outdated infos or plugins. Some PHP code I found worked, but ended up showing two lines of my text file at once. I tweaked the code a little (not that there’s much to work with) and ended up creating this little plugin. A “real” programmer probably would laugh at this. But I’m not at all a programmer and frankly quite pleased with myself.

This is the code for the PHP script.

Continue reading “Random Quotes from File (PHP Script)”