Question: The purpose is to change the colour of the text in the footer of my Wordpress site. At the footer you can see the color of the text is black and not visible.

Wondering where do you insert the code below to edit in CSS the FLASH themes to change the text color of the footer?

Can't seem to post image, so link of image is [here](https://i.imgur.com/JPkxHLW.png)

On my [Computer Repairs](https://www.chatswoodcomputer.com.au/) website, I've tried addinto into style.css, but nothing seems to change

```
.site-footer {
    color: #fff;
}

```

Was expect the text to be white, but it is still showing up as dark color when adding the code above. Perhaps I'm adding in the wrong section

Answer: 
A slightly different solution, working off the following assumptions.

**Assumptions:**

* format is fixed and delimited by underscore (underscore isn't used in the year / program / version).
* sorting by version ascending (OP wants the largest version).
* version is numeric (excluding preceding "V" and has no leading zeros).
* code does not rely on `fileNames` sorting.

**Explanation:**

1. parse the string to get year / program / version (numeric)
2. check if an existing value exists for "<year>\_<program>"
	1. if value doesn't exist, then this is the latest version.
	2. if value does exist, check if this version is larger than the existing version.

***code.js***

```js
var fileNames = [
  "2021_Test_V1",
  "2021_Test_V2",
  "2020_Test_V11",
  "2021_Test_V4",
  "2021_Test_V3",
  "2020_Test_V10"
]

/* get latest version (grouped) by year + program */
const latestVersion = fileNames.reduce((accu, curr) => {
  let [year, program, version] = curr.split('_')
  version = parseInt(version.substring(1))
  const key = `${year}_${program}`
  const prevVersion = accu[key]
  if (typeof prevVersion === 'undefined' || version > prevVersion) accu[key] = version
  return accu
}, {})

// convert back to array of filenames...
console.log(Object.keys(latestVersion).map(k => `${k}_V${latestVersion[k]}`))
```

Returns:
`["2021_Test_V4", "2020_Test_V11"]`
One possible solution (maybe not so good in performance) is to use [Array.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) with a nested [Array.some()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some) to keep only the elements meeting the expected condition. This also assumes that all years uses the four digit format.

```js
var fileNames = [
  "2021_Test_V1",
  "2021_Test_V2",
  "2021_Test_V4",
  "2021_Test_V3",
  "2021_Test_V10",
  "2020_Test_V11",
  "2020_Test_V10",
  "2019_Test_V1"
];

let res = fileNames.filter((str, i, arr) =>
{
    let [year, app, version] = str.split("_");

    return !arr.some(s =>
    {
        let [y, a, v] = s.split("_");
        return y === year && +v.slice(1) > +version.slice(1);
    });
});

console.log(res);
```

```css
.as-console {background-color:black !important; color:lime;}
.as-console-wrapper {max-height:100% !important; top:0;}
```