Highland Council Marketing Option

Look at this, at the end of applying to be on the housing register for Highland Council, this translates as “I understand you are homeless but can we take a moment to sell your details”. Outrageous.

In somewhat related news, building work has started in Glenelg for a few affordable homes. Apparently this is despite local opposition(!) to the development from the neighbour!

WooCommerce | Same Product Base & Shop Base

Here is a simple* code, modified after the solution by Le Van Toan outlined on his blog based in Vietnam. Have you ever tried to setup your own custom permalinks in WooCommerce so that the product base and the shop base are one and the same? This plugin makes it so.

Desired WooCommerce Shop/Products base structure:

shop page – website.com/shop/
product parent category archive page – website.com/shop/parent-category-slug/
product child category archive page – website.com/shop/parent-category-slug/child-category-slug/
single product page – website.com/shop/parent-category-slug/child-category-slug/single-product-page-slug

Here is what you need to set in Settings > Permalinks
visit website.com/wp-admin/options-permalink.php

Optional > Product category base: shop
Product permalinks > Custom base: /shop/%product_cat%/

Here is the code, for your functions.php

function category_base_is_shop_base(){
// Get all product categories
$terms = get_terms(array(
'taxonomy' => 'product_cat',
'post_type' => 'product',
'hide_empty' => false,

// Check if terms are retrieved successfully
if ($terms && !is_wp_error($terms)) {
$siteurl = esc_url(home_url('/'));
// Loop through each term to set up custom rewrite rules
foreach ($terms as $term) {
$term_slug = sanitize_title($term->slug);
$baseterm = str_replace($siteurl, '', get_term_link($term->term_id, 'product_cat'));
// Add rewrite rules for base term, pagination, and feeds
add_rewrite_rule($baseterm . '?$', 'index.php?product_cat=' . $term_slug, 'top');
add_rewrite_rule($baseterm . 'page/([0-9]{1,})/?$', 'index.php?product_cat=' . $term_slug . '&paged=$matches[1]', 'top');
// add_rewrite_rule($baseterm . '(?:feed/)?(feed|rdf|rss|rss2|atom)/?$', 'index.php?product_cat=' . $term_slug . '&feed=$matches[1]', 'top');

// Hook into 'init' action to set up rewrite rules
add_action('init', 'category_base_is_shop_base');

// Function to run when a new term is created
add_action('create_term', 'category_base_is_shop_base_edit_success', 10, 2);

function category_base_is_shop_base_edit_success($term_id, $taxonomy) {
// Inform the user to flush permalinks manually
add_action('admin_notices', function() {
echo '<div class="notice notice-warning is-dismissible"><p>To ensure your custom permalink structure works, flush your permalinks by going to Settings > Permalinks and clicking "Save Changes".</p></div>';

Visit your Settings > Permalinks and hit save twice to force flush/rebuilding of permalinks. Done.

“Masonry for Bricks Product Elements” – WordPress Plugin

Here’s a plugin I have written that extends the Bricks theme, specifically it allows you to use Masonry.js (built into WordPress) with the Product Element. I was surprised this wasn’t a built-in option and created this lightweight plugin to achieve integration. All you need to do is install the plugin and add a custom id to the product element.

The plugin is straightforward enough, you will find a settings panel where you may customise the style sheet. It is important you add the id `#masonry-for-bricks` to the relevant product element via the Bricks builder for the masonry effect to work.

Masonry for Bricks Product Elements – Download Plugin 1.1


Give WordPress Media Thumbnails Their Own Directory

If, like me, you find WordPress incredibly messy in the way it fills up your media folder with a noise of rebuilt thumbnails here is a little code for your functions.php

It will create future thumbnails in their own /thumbnails/ directory within your media folder.

function custom_thumbnail_save_directory($metadata, $attachment_id) {
$custom_subdir = '/thumbnails/';

$upload_dir = wp_upload_dir();
$custom_dir = $upload_dir['basedir'] . $custom_subdir;

if (!file_exists($custom_dir)) {
mkdir($custom_dir, 0755, true);

if (!empty($metadata['sizes'])) {
foreach ($metadata['sizes'] as $size => $size_info) {
$source_file = $upload_dir['path'] . '/' . $size_info['file'];
$destination_file = $custom_dir . '/' . $size_info['file'];

if (file_exists($source_file)) {
rename($source_file, $destination_file);

$metadata['sizes'][$size]['file'] = 'thumbnails/' . $size_info['file'];

return $metadata;
add_filter('wp_generate_attachment_metadata', 'custom_thumbnail_save_directory', 10, 2);

function custom_thumbnail_directory($uploads) {
$custom_subdir = '/thumbnails/';

if (!file_exists($uploads['basedir'] . $custom_subdir)) {
mkdir($uploads['basedir'] . $custom_subdir, 0755, true);

return $uploads;
add_filter('upload_dir', 'custom_thumbnail_directory');

Use a plugin to rebuild your thumbs after adding this code. Now, isn’t that tidy?

Spain Scraps “Golden Visa”

I realise it is not clever to comment on the politics of someone else’s country but here’s a slice of common sense from Spain where the “Golden Visa” is to be scrapped. Currently 500,000 EUR can buy any foreigner a sizeable home in that country, but enough is enough. Last year foreign buyers accounted for 15% of all house sales in Spain. Highest number on record. In the meantime in Spain as with my own country, there’s a housing crisis and every bonnie corner is up for grabs, second or third homes in some cases. The cash rich offloading before a Labour government comes after them? It is hurting young people the most in Spain as it is in Scotland. The BBC ran a story about young people in Spain living out of their cars in areas dominated by expats. How wrong! Though in the Scottish Highlands we are not far off that reality, particularly on Skye in summer months. In Spain the government has decided to do something about it.

“…in major cities that are facing a highly stressed market and where it’s almost impossible to find decent housing for those who already live, work and pay their taxes there…”

Reuters report prime minister Pedro Sanchez as saying.

Wealthy foreigners in Spain can no longer buy their right to remain there. This is great news. Those who live in a place and contribute to it should be rewarded, not the highest bidder.

Thought you cannot buy residency in Scotland the sentiment of redressing the imbalance should similarly be made policy there. My belief is Scotland would never follow suit, specifically in the Highlands where my feeling is the (totally inept) Highland Council´s long term plan is a form of Clearances Mk. II. If only the pesky locals would get out of the way of AirBnBs, Danish owned forestry, Norwegian fish farms, electricity pylons! If they do successfully run those who already live, work and pay their taxes back into the larger towns and cities it’ll probably make for a tidier countryside. Less decrepit schools and GP practices. Who cares about workers in the wee hotels and Inns – Japan has showed us how to do vending machines for practically everything anyway. Concentrate the spending in Inverness and some public conveniences on the public convenience that is Skye. More breathing space for the few, certainly, those who can certainly afford to hoover up such deals as a one bedroom home in Glenelg (not even Skye), offers over 220,000 GBP! There is no “Golden Visa” in Scotland, no right to remain can be bought. But certainly there’s a lot to be sold. Who is cashing in?

Scottish Fish Farm Losses: 30% of Farmed Salmon Perish in 2023

I’ve just calculated* that – in Scotland alone – over 30% of fish farmed salmon may have been lost in 2023. If my interpretation of recently published numbers is correct this is utterly disgusting. Representing a 5% increase in mortalities as compared to the recent trend of 25% mortalities. A news article published yesterday by the BBC highlights the unfortunate effect warming oceans are having on salmon (forced to live and die in their closed pens) no doubt climate will have an effect on any harvest. However, it is surely the job of the fish farmer to improve methods of husbandry and make changes to reduce mortality. Surely they work with climate scientists and know what’s coming? Throughout the 2000’s it was standard practice for Scotlands fish farms to run at 20% mortality. Now it seems, with much increased numbers of farms (over 200 in Scotland), newfangled feed and technology things are getting worse not better. This is outrageous.

I find it sickening. No one likes the idea of battery raised chickens. Its almost an unacceptable idea today. Mortality rates of up to 14% in those tiny cages, poor chooks! Shocking. Did you know the UK’s Red Tractor farm assurance scheme requires mortality rates for chicken do not to exceed 5%? We seem to think free range chickens are okay – veggies aside – and a 5% mortality rate would appear to be publicly acceptable. The miserable fish farm industry in Scotland has been running at 25% mortality over the last few years (according to Inside Scottish Salmon Feed Lots). If the industry projections and my calculations are anywhere near right, then statements I’ve heard down my local “we dumped eight tonnes of dead Salmon, just this morning!” (that particular employee put it down to a mistake with some “treatment”) might well be accurate. Totally rotten work. These are our lochs they’re playing in. I’ve seen the trucks rolling over the mountain from the fish farms, it is common knowledge in the Highlands that fish farms are a disgrace, the companies in charge are clearly not capable.

* Calculations
Projected production for 2023 was 187,725 Tonnes. This is from industry figures published in a report given to the government last year. Annoyingly they do not give us a number of actual Salmon so with a very large pinch of Hebridean sea salt I calculated the number like this…

First, I need to estimate an average weight of a salmon. Stated as 5.5-6kg according to this site and a Scottish Government report (from a few years back) concurs. A 2020 report on the Scottish Government website produced with Marine Harvest seems to indicate 5.5kg is pretty average weight for fish farmed salmon in Scotland. They are the major producer. The website All About Feed references 5.2kg as the average gutted weight. I decided on a low average weight of disgusting fish farmed salmon at 5kg.

5kg divided by 187725000 kg (projected production tonnage 2023) is equal to 38 Million fish. That means 38 Million is the apparent number of salmon farmed in Scotland, 2023. From the most recently published numbers we learn that a further 17 Million salmon did not make it to market. 17 Million lost added to 38 Million projection gives us 55 million salmon to begin with. This is in line with figures from 2022 where the number of smolts (salmon added to the farms as stock) was stated at just over 55 million.

BBC News reports 17 Million salmon lost in 2023. I calculate there were 38 million salmon that made it to market. 55 Million in total of which the losses equal 31%. It could be as much as a quarter of toxic fish farmed salmon was lost last year.

The Scottish Government report (Mortality+information+-+until+end+January+2024.xlsx) described in detail the average weight of the lost salmon and someone with more spare time than me could probably calculate the actual weight of lost salmon per farm, then remove this from projected or true tonnages when published for absolute accuracy. Huge numbers obviously.

It appears this is very bad news for the Scottish Fish Farm industry. Long may they rot at the bottom of their metaphorical pen. Those horrible eyesores that they are, which so nobly offer the wee inhabitants of the wee far off Highlands a pittance (I’m mocking the often used line; what else would people do in the Highlands? “we need the fish farms, we need the jobs”). Not one of my friends in the Highlands makes a living from fish farming. Nor have I been offered any salmon caught there since I was a boy. In lochs once full of native salmon, even in my childhood I recall the delight at seeing (or even taking a chance at catching) these plentiful beauties. They appear to be all gone. That was just 30 years ago. Toxic fish farmed salmon is all we have now.

Rising Tide

I heard about an exciting new programme from the Scottish Government in December. I’ve bemoaned the lack of affordable housing in the Highlands on my blog (here), it was whist researching relocation to an island off the mainland of Scotland I came across the new ‘Islands Programme’ and thought these (apparently) well funded folks might be able to offer incredibly well-timed support and practical advice;

…the £25.8 million Islands Programme, established to support the implementation of the National Islands Plan. This is a landmark strategy to improve the quality of life for island communities with 13 objectives, and over 100 specific measures to address: population decline.

I wrote citing difficulties establishing myself in the Highlands: up against security of tenure, lack of commercial property to rent. I wrote expressing intention to invest in a place and build my business. etc. etc. I wrote asking for practical advice: is there a fund I can apply to, what might the requirements be for young people – like me – who want to live on an island, can individuals apply / businesses? How can I take part? The headlines put out by their PR department read: “want to be paid to move to a Scottish Island”, tell me more.

No response was ever offered. The website of the department is now offline: islandsteam.scot – how disappointing.

‘Toxic’ Fish Farms

I made a reference to ‘Toxic’ fish farms in an earlier post. I thought I’d expand a little; thousands of fish in a cage does not make for a happy fish. It doesn’t matter if that cage is in a tank on land (where they should be) or situated in a picturesque Scottish Loch (where they currently are).

Fish in these cages/pens get diseases, the fish “farmers” (quotes indicate my raised eyebrow as farming equals husbandry) employ large amounts of chemicals to control such things as sea lice and other diseases. Talk to any fish farm employee (after a few) in any pub around here and they’ll tell you what happens when the dosage goes wrong; tonnes of dead fish. Literally tonnes. Eight tonnes was disposed of a few months ago according to a loud mouth employee in my local. I think he was trying to impress us with that number. Incinerated, according to him, by means of a contract with an Energy Company.

Some reading for you relating to toxic chemicals in Scottish Fish Farms:
For more news you can follow: facebook.com/issf.org.uk

Anyway, it appears the chemicals used at the concentrations mentioned on those webpages is toxic. I refer to these toxic fish farms as such; toxic. I put a stress on the word toxic and those who were lucky enough to know Chris Main of Glenelg might want to apply that man’s own idiosyncratic accent to the phrase; miserable fucking fish farm jobbie.


Scottish Highlands: Dewildered & Depopulated

I met some university professors at the end of the summer on a tour of Scotland’s nature reserves. They’d read a lot of academic papers regarding how well this country was doing; reintroducing this and replanting that. Apparently Scotland is ahead of the game and fiercely proud of its re-wilding successes on the world stage. Sadly, what the professor of Wildlife Ecology at Oregon State University actually found here on his visit to the Highlands was, he described to me, a ‘dessert’. Aghast, he pointed out the gap between what he had read in academic literature and what was found in reality. The professors mean to come back with a group of students next year to analyse the disparity. Im hoping to help out.

I was embarrassed but I know it to be true, Scotland has been dewildered, I’ve been lucky enough to see real wilderness stretching from horizon-to-horizon abroad, I’ve seem managed forests too, you know life in balance when you see it. If we are to be honest, rural Scotland is quite a lot of: monoculture, sheep here, sheep there, sheep everywhere, empty villages (not counting the holiday houses), miserable toxic fish farms… this country’s natural state is in a bad way and hearing from the professors that our academics are proudly describing (questionable) successes is a little worrying. I think they must be dewildered!

As for the inhabitants: in a previous post I highlighted a recent report which contained the horrifying statistic: 80% of people in Lochalsh and Skye describe difficulty in finding a house in this part of the Highlands.

More bad news: in December Highland Council warned of the “significant risk” parts of the Highlands are being “drained” of people. Here’s the news article from the BBC. This again is obvious to anyone living in these parts.

When a representative from Highland Council visited Glenelg to speak at our Community Council (where I currently live) I made the point that the enormous increase in short-term lets (Air B&Bs etc.) must be the major factor, must be having a HUGE impact on the number of private rentals (long term lets) in the Highlands. The Council’s man completely refused to engage with my point. This once again is obvious to anyone living in these parts.

It is now my belief that this will be the fate of the Highlands. It’ll be: The Cheviot, The Stag and the Short Term Let.

More on that next time.

Lochalsh Community Survey / Action Plan

I spent a good while trying to track down this document, created by a community group in Kyle of Lochalsh. It represents the many concerns of people in this part of the Highlands in the 2020s. As you will see, people were most concerned about housing.

“The Lochalsh Collaboration was set up in May 2019 to consult the community on its priorities, write a community action plan based on those priorities and then work with partners to take action. Lochalsh Collaboration is made up of representatives of the seven community councils and community trusts in Lochalsh… etc.” – Survey Report Introduction



Here’s the Summary PDF. Also the complete Survey Report PDF and I have an archive of the Action Plan PDF too.

I hope no one minds me sharing this. thought it might be valuable to others in the future, respect to those who put the hours in.