WordPress Problems

So I’m slowly beating the site into submission, but running into a few issues. First, I’m using a child theme of TwentyFourteen, in order to avoid making changes to the main templates. The way that works is that I add changes to the child style sheet, which then supercede the parent. But there are some things that can’t be fixed with the style sheet. For instance, in order to move things around in the post, I have to actually change the PHP code in the templates, in the parent. Another problem I’m having is that, in theory, a new function file in the child will override a function of the same name in WordPress. I want to display the time along with the date on the post, which is generated by a function called “twentyfourteen_posted_on” (the original can be found here). It retrieves the date, but not the time. In order to get it to do so, I’d have to modify it. But when I copy that into my child theme directory, and make changes, nothing happens. Anyone have any idea what the problem is, or how to troubleshoot?

[Update a while later]

OK, I think I figured out the problem. Apparently you can only override functions that are in the function.php file, in the main template directory. This is a tag, buried in the “inc” directory. So I have to edit it in there. Which means that I’ll lose the changes if I have to update the template. But it’s not a huge deal.

6 thoughts on “WordPress Problems”

  1. Speaking of beating wordpress into shape, your current style doesn’t quite work on my screen. The left sidebar overlaps the edge of text in the main column. In the #secondary style, style.css line 141, reducing width to 210px makes it look a lot better for me.

  2. Do you have a Google Talk plugin associated with this website? I tried to open a number of different individual posts to read new comments, as I usually do (I’ll open 3 or 4 in new tabs and then just go through them one by one), and I started getting “We are seeing unusual traffic from your IP address” popups referencing Google Talk. I ignored them, but then got a new one when I started typing this reply.

    I had my GMail open at the time, so maybe it’s from that, but it seems too much like a coincidence for it to have just started today after opening 4 different posts in a short period of time.

  3. Looking great – I am usually a fan of just using the defaults, but you’ve made good readability improvements.

Comments are closed.