Tag: Wordpress

  • WordPress: Remove broken links

    As a general rule, I don’t do much in the way of SEO (search engine optimization) on this blog. I’m not trying to sell anything, readership numbers are largely irrelevant to me, and I am not serving any ads. While I wouldn’t mind having a readership in the tens or hundreds of thousands, the fact is I have neither the time nor the inclination to spend money on increasing readership numbers.

    (more…)
  • Enabling two-factor authentication on WordPress

    For the past two years, I’ve been enabling two-factor authentication (2FA) wherever I can, and particularly on services where I want to ensure that my data is as secure as possible. Back in April, I added 2FA to this site. As this was the first time I’d ever set something like this up on a service that I maintain myself, I went to the task with a fair bit of trepidation as I simply had no idea how easy or difficult it would be. As it turns out, it isĀ very easy. Here’s how I did it:

    (more…)
  • A new outlook on life

    Having played with the idea for some time now, I finally decided it was time to switch out my old theme for this one. Though there was nothing wrong with the old theme, per se, I had grown tired of it, and opted to swap to this one. The old theme, NewBlue by Blog Design Studio has served me well since I first started using it. That, however, is almost four years ago, and I wanted the site to look differently.
     
    For now, I will use Twenty Twelve, by the WordPress team. If anyone has any suggestions for a new theme that might suit the site, feel free to drop me a line or two in the comments.

  • Adding a personal message for commenters

    If you have left a comment, you might have noticed that there is a message for you before the comment field, that looks like this:
     

     
    It’s pretty simple to implement, though you do need to muck about a very little bit in php. Here’s how: (more…)

  • WordPress and the Mystery of the Disappearing Line Breaks

    I’ve been running my blog on Wordpres for over a month now, and I am mostly happy with what I’m seeing. It does most of what I want it to do natively. As for what it doesn’t do natively, there is usually a plugin to do that for you.
     
    The only thing I’ve as yet been unable to make it do satisfactorily, is line breaks. TinyMCE, the text editor in WordPress, executes a back-end filtering process every time you switch from Visual to HTML and back, as well as whenever you save your posts. This filtering process, for some reason, filters out both <br>, <p> and </p>.
     
    I originally tried to resolve this by installing a plugin called TinyMCE Advanced, which worked pretty nicely, except that, when I was typing up this post, it filtered so that my code examples above were converted so that they became actual HTML tags.
     
    I then installed another plugin called TinyMCE Valid Elements, in which I defined <br> as a valid element. Sure enough, TinyMCE no longer filtered out the tag, but it wasn’t parsed either.
     
    I will continue to try to fix the problem. In the meantime, I have a workaround. By adding &nbsp; wherever I want a break, I get my line breaks.
     
    Note: Comments disabled due to massive amounts of comment spam