Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1238578
    raindogsolutions
    Participant

    Hi, I need to add the following line of code to the <head> section of my site.

    <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120-precomposed.png" /> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152-precomposed.png" />

    What is the best way to go about this please?

    Thanks!

    #1238705
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    After that please add following code child theme function.php file:

    add_action('wp_head', function(){ ?> 
    <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120-precomposed.png" /> 
    <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152-precomposed.png" /> 
    <?php }); 

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1238578 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>