Good morning! I am using a code in WP to display musical notes. It basically takes text from a shortcode "chord" and displays it in the line above. It also converts the b (lowercase) to ♭. Example:
The problem is that it converts everything in the shortcode to upper case, and I do not want it. I just want it to display what is typed. In his code I found the following line:
$chordPretty = (strlen($chord)>1&&substr($chord, 1,1)==='b')? strtoupper(substr($chord, 0,1)).'♭' : strtoupper($chord);
Replace strtoupper with strtolower to see if it was really that part that did the conversion and is in fact . How do I call the string $ chord by replacing b for ♭ but without changing the letter box?
Thank you!