Bootstrap instructions say to link the Bootstrap stylesheet before all other stylesheets in . Using function my_custom_head_output() in functions.php (child theme) for this purpose results in unwanted CSS changes (e.g. page link colors designated in X Theme’s Global CSS are replaced with default Bootstrap colors). I believe this is because a function such as my_custom_head_output() is placed at the bottom of .
How do I link a stylesheet before all other stylesheets?
Bootstrap Guide: https://getbootstrap.com/docs/4.1/getting-started/introduction/