Add </HEAD> & </BODY> tag

How do I add scripts to these files without plugins?

I know from previous threads that it’s not the default files in PRO. Could you provide me with the files and where?

I need to add script to verify our SSL seal.

Hi There,

You have to setup a Pro child theme first: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57.

After that adding this custom code under functions.php file locates in your child theme:

//before </head>
add_action( 'wp_head', 'print_script_before_head' );
function print_script_before_head(){
  ?>  
  <!-- Your script -->
  <?php
}
//before </body>
add_action( 'wp_footer', 'print_script_before_body' );
function print_script_before_body(){
  ?>  
  <!-- Your script -->
  <?php
}

Hope it helps :slight_smile:

Hey Thai,

I will give it a try. But mainly what we want to do is to add the verification badge/seal from Comodo. We tried with their support but it populated under the footer and once we hover the site starts to bounce.

May you have a look and see how we can implement it properly with PRO.

It should look like this: https://tppr.me/SClpG

But we want it to be placed in the footer where you see we have the image right now, if possible.

Managed to fix it and used a shortcode like mentioned in this thread: https://theme.co/apex/forum/t/comodo-trust-logo-code-breaks-preview/17406/6

The footer builder breaks just as mentioned there. But we are not in the footer builder on a daily basis, so it’s fine. If we need to edit, we could remove the shortcode and add it once again once we’re done. But would be great if you could release an update with raw content in header and footer builder.

Hi There,

Thanks for the feedback I will add your notes to the issue tracker

Have a great day!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.