html - Adding code before <body> tag in wordpress -


i using wordpress , have bellow html code after body tag.

now want move code before body tag starts.

<div class="top-bar">     <div class="container">         <div class="logo"><a href="#cmr"><img title="cmr &ndash; convention management resources" alt="cmr &ndash; convention management resources" src="http://192.168.1.145/cmsrush/wp-content/themes/cmsrush/images/cmr_logo.png"></a>         </div>               <a class="tar-but" id="rfp1" href="javascript:decryptx('tbmftadnsvt/dpn@tvckfdu&gt;sgq!tvcnjttjpo')">submit rfp</a>          <a class="tar-but" href="#contact">request demo</a>          <div class="menu">             <div class="menu-top-menu-container"><div class="menu-collapser" style="display: none;"><div class="collapse-button"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></div></div><ul class="slimmenu" id="menu-top-menu"><li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-317" id="menu-item-317"><a href="#services">services</a></li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-318" id="menu-item-318"><a href="#news">news</a></li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-319" id="menu-item-319"><a href="#company">company</a></li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-320" id="menu-item-320"><a href="#contact">contact</a></li> </ul></div>     </div>      </div> </div> 


enter image description here



have tried move html code before body tag when checked in page source still display after body tag.

why don't understand.

any idea how fix that?

thanks.

don't that, style container instead.

put in theme's css file:

.top-bar {     position: absolute;     top:0 } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -