test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • pressmar Friend
    #928168

    Hi,

    I use the Custom Code After and Before /Head Section to add icons or google analytics sniplet. This worked great for years. But since a few days no code from the custom code section of the template is used on the page. I checked every link in the head but it misses. I deleted the cache and disabled the template CSS and JS Optimization but nothing worked.

    Maybe you could help.
    Yours Oliver

    Saguaros Moderator
    #928177

    Hi

    You can try to add these custom code via the head block of your site:

    • Go to file: ROOT/templates/ja_beranis (your default template)/tpls/blocks/head.php
    • Add custom code at the end of file
    pressmar Friend
    #928183

    Hi Saguaros,

    thanks for the reply. Sure i can hardcode it to the .php file. But every update would overwrite the changes. Is the custome code in the template admin deactivated for every or just a bug?

    Thanks Oliver

    Saguaros Moderator
    #928803

    There maybe something wrong with your server as the custom code still work at my end.

    You can copy the file:

    ROOT/templates/ja_beranis (your default template)/tpls/blocks/head.php

    into this directory:

    ROOT/templates/ja_beranis (your default template)/local/tpls/blocks/head.php

    If ‘local’ folder doesn’t exist, try to create it, this folder will not be affected when you update template.

    pressmar Friend
    #928878

    I used the solution you explained. now there are two copies of the google analytics links on the site. If i delete the local head.php again – both g.a. links are gone. It looks strange. Any ideas?

    Saguaros Moderator
    #929210

    Try to keep it in local head.php and remove it in ROOT/templates/ja_beranis (your default template)/tpls/blocks/head.php folder

    pressmar Friend
    #929263

    just to make it clear – i just hardcoded it in the local head.php. I didn’t change the tpls/blocks/head.php. The second instance of the google analytics sniplet seems to come from the template administration custom code fields.

    Saguaros Moderator
    #929849

    You can send me the FTP account of your site so I will have a look.

    pressmar Friend
    #929919

    ok please send me your email, cant find a private email here

    Saguaros Moderator
    #930162
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 9 replies, has 2 voices, and was last updated by  Saguaros 8 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum