在页面内容上方加载可视化作曲家短代码

this is my first time using visual composer on a theme I am creating, I am facing a challenge which is loading visual composer element above the page content , I mean above the main content, giving it a full width, what I mean is that when ever I drag and drop VC element on a page it goes inside the main page i want it to be outside the main page content. I contacted support and they said visual composer element would show anywhere there is <?php the_content(); ?> is found.

I saw a code online where I can check if visual composer is placed on a page, if yes it has a separate format created for it (mainly to hide sidebar), and if null it uses the default page template which has main page content and sidebar.

my question is, does any one know how to implement the code , i found the code in this question on stack overflow. Detect Visual Composer

Or does any one has ideal on how to make all drag and drop element stay on top the page and not in the page context.