Okay so the vanilla WordPress, it just was rather lacking. There are two fundamental features I needed – RTA Label and a better theme because the default themes all sucked donkey balls.
Before I do anything else, there needs to be a picture of a horned lizard. Everybody loves horned lizards.
The image is CC0 so I don’t have to credit the photographer, but well, it’s the right thing to do – so feel free to go to pixabay and send the photographer some love, buy him some coffee or whatever – https://pixabay.com/en/southern-desert-horned-lizard-2519993/ – the photographer may have to sell his camera gear due to the shitty economy if something doesn’t come up for him, and that would be sad.
Anyway, okay I had to post the lizard first because it seems there is no way to tell the OpenGraph plugin *which* image to use with the OpenGraph data, which kind of sucks.
Back on topic, I wanted a plugin and a theme. The plugin I wanted was one that sends the RTA header. Really just a few lines of code.
I found a plugin that says it did it, but fucking WordPress, it’s installer wanted me to give it my ftp username and password.
WHAT THE FUCK.
I don’t use ftp, but even if I did, who the fuck does WordPress think they are encouraging something as stupid as giving a login password to a third party?
And people wonder I don’t like WordPress.
If you do use WordPress I’m guessing that’s not news to you, but if you don’t, I shit you not. WordPress actually wanted me to give them my password.
I wasn’t going to do that so I just wrote a plugin to send the RTA header myself – if you want it, it’s a single file, I put it on github as a gist: https://gist.github.com/AliceWonderMiscreations/e65bb21f0d6c9c6842f0a535837077ec – just put the file (download the raw version) in your plugins directory. Activate it and your site sends the RTA header.
I could get fancy and make one that ads the RTA logo to your page footer, I’m guessing the plugin in the WordPress repository does that, but the header and meta tag are the only things that matter and some people may not want the logo which means I’d have to make an admin interface to let people choose and, well, just wasn’t worth my time.
Theme, same issue. And for that I took a screenshot.
Not only did it suggest I give them my FTP password, but it defaults to regular FTP without SSL which is plain text.
And people wonder why WordPress sites get hacked. The developers just have no sense of what is safe.
Anywhoo – writing a theme isn’t a file thing like sending a header is, so I went to the WordPress site and downloaded the zip file.
The result was better than the default WordPress themes but still, the avatars on comments were just too fucking small.
I did some searching, and it seems WordPress is really screwy in that respect.
There literally isn’t a setting one can change, you have to edit one or more files within the WordPress install itself.
You can apparently edit a CSS file, but if the avatar is a bitmap image, the result will look bad because what then happens is a small image is still fetched and then stretched. So you have to edit the
comments.php file in your theme and set the size there, which likely means it gets undone every time you update the theme.
This is the change I made to that file:
--- comments.php.orig 2018-04-25 21:32:46.038696297 +0000 +++ comments.php 2018-04-25 21:37:32.062194077 +0000 @@ -52,6 +52,7 @@ wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, + 'avatar_size' => 130, ) ); ?>
I added the line with the
Apparently some themes already have that line and you just need to change the value, but the gtl-multipurpose theme did not have the value. I set it, and seems to work – sort of.
The theme also does that bullsh*t circle crop thing on the avatar of the person who made the post.
I probably am going to have to dig into the theme source to change that.
The second issue – the CSS for the comments sucks.
The name should be left and above the avatar. The avatar then should float left, so the date and the comment wrap around it.
I’ll have to find where to fix that in the CSS as well.
I really do not understand why WordPress just does not have a standard place to set that stuff.
PHP – the programming language WordPress is written in – has a feature called an interface. For things like Avatar size, WordPress could have a defined interface that themes and plugins could use to get the user’s desired setting.
This is not a difficult concept.