WebSite X5Help Center

 
William T.
William T.
User

I can't find HTML in header that I put there  en

Autor: William T.
Visitado 1963, Followers 1, Compartido 0  

I put some html code in my header... Now I want to take it out.  Problem is I can't find it even though I know it is there. (see attachment)..

The code I want to remove sends the peson going to the web site to a different place if they are on a mobile device  .... "http://photoapps.tuckpixs.com/portraitphotos/tuckpixs1");
}....

Publicado en
2 RESPUESTAS - 1 CORRECTO
Paul M.
Paul M.
Moderator

Hello William,

This is the code you're looking for:

<script>
if (/Android|iPhone|iPad|iPod|IEMobile/i.test(navigator.userAgent) )
{
[removed].assign("http://photoapps.tuckpixs.com/portraitphotos/tuckpixs1");
}
</script>

And you will probably find it in Step 2 Map Creation by highlighting the page in the sitemap, then clicking on the 'Properties' button on the right-hand side of the screen.  In the new window which opens go to the 'Expert' tab...  then check the following two locations in the Custom Code drop-down menu (see screenshot attached):

  • After opening the HEAD tag
  • Before closing the HEAD tag

Let us know how you get on.

Paul

Leer más
Publicado en de Paul M.
Paul M.
Paul M.
Moderator

Look also in Step 4 Advanced Settings > Statistics, SEO and Code > Expert tab...  and then in the same two places as above in the Custom Code drop-down menu.

The solution will be the former if you added the JavaScript to one page only, or the latter if you added it globally across the entire project.

Leer más
Publicado en de Paul M.