Tuesday, September 22
Shadow

Month: January 2017

Viral WordPress Theme Homepage Image Size Problem

Viral WordPress Theme Homepage Image Size Problem

Software Dev
After finally working out how to add a featured image to the homepage for posts I ran into a problem where the images were appearing as full sized. This meant over 10Mb of image files were being downloaded when the homepage was loaded. There may be a way to select a lower resolution file but I couldnt find it, if there is let me know in the comments! Wordpress has a specific function that loads a thumbnail based on a given size. After digging through the files for the Viral theme I narrowed the post code for the homepage down to /wp-content/themes/viral/template-parts/content.php Glancing at this I could see that line 17 $viral_image = wp_get_attachment_image_src( get_post_thumbnail_id() , 'viral-blog-header' ); This gets the full size image of the file. Instead of this usin...
Hotel TV + Amazon Fire Stick Problem

Hotel TV + Amazon Fire Stick Problem

General Wandering
For the last couple of months, when I travel with work I have been taking my Amazon Fire Stick with me so I can catch up with the new Top Gear called The Grand Tour. One thing I will say is that I have been slightly disappointed with it, I understand the need for it to be humours but it also omits information about the cars that I would actually like to know. I keep my Fire Stick in an old Bose headphones leather case, it fits perfectly. Anyway yesterday I rocked up to my hotel, plugged in my Fire Stick and went to change the source to HDMI. After 5 minutes of searching the TV for some buttons I couldn’t find a thing. Next I took a look at the remote only to find it missing the buttons needed to change the source. A quick google for the Samsung TV model HG40ED690DB (Type No...