How to use WP conditional tag in a functions.php with OCEANWP Theme?

Theme – OceanWP
Page Builder – Elementor

Single Post templated created using Elementor

I am trying to add custom code for the SINGLE BLOG POST.

Using a conditional tag “is_single”, I want to display social sharing buttons for my blogs/posts

Now, I researched and found out WP conditional tags can’t be used in functions.php directly since it has to check THE LOOP before it runs the condition check.

Does anybody have an idea of how can I use a conditional tag in functions.php using some hook provided by OCEAP WP.

I don’t want to use a plugin for social share since it bloats.

Now I am not sure which hook to use or am I using the whole syntax wrong?

Is it not working because I created a custom Single Post Template using Elementor? So it overrides any custom function run on the single post template?