It’s not working, I have like $something="Random string of words"; in the theme functions.php
$something="Random string of words";
functions.php
When I try to echo that variable in another theme file nothing happens
You can add global in front of your variables, but it’s not considered the best practice:
global
https://wordpress.stackexchange.com/questions/151319/add-a-variable-in-functions-php-and-call-it-in-single-php
using global is not a good idea.
Enter the destination URL
Or link to existing content