Hi There,
Thank you for the clarification, I suspect you edited the x_social_global() function to show flags instead of social icons on the topbar (but ends up affecting footer as well)
I advise that you remove the modified x_social_global() on your child theme, this will revise back the x_social_global() to its original purpose.
Then write your own function on the child theme to output the flags link, you can copy the x_social_global() as your template, but give it a different name like my_topbar_flags(), you can actually copy your current flags HTML markup on that custom function.
Then navigate to this directory: \wp-content\themes\x\framework\legacy\cranium\headers\views\global
Copy the file _topbar.php to your child theme (same path, create the folder if it does not exist), open/edit that pasted file, look for the line <?php x_social_global(); ?> and replace that with <?php my_topbar_flags(); ?>
So now the topbar will output your flags (the function you wrote) instead of the social icons. Not affecting the footer, because on the footer you still have the <?php x_social_global(); ?> which serves its original purpose
Please do that via FTP so if you made a mistake you can correct it immediately.
The flags may look untidy at first, but you can style and position that with CSS, you can inspect your site using Chrome’s developer tools to see the styling that is applied to an element and then using custom CSS to override it. You can find more info on how to check for CSS selectors here. Then information about writing your custom CSS here.
Let us know how it goes,
Cheers!