Inserting Code

Hello,

Thank you in advance for your help. I’m using X Pro and really enjoy using it.

  1. I’d like to insert code into the head tag. Where do I access this?
  2. I’m adding an interactive html5 map to my site. How do I upload a CSS file, JS files and jquery file to my site?

Really appreciate your help.
Thank you,
Katrina

Hi Katrina,

First, you need to install and activate the child theme: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57.

You can add this code under functions.php file locates in your child theme:

add_action( 'wp_head', 'add_head_script', 999 );
function add_head_script(){
	?>
	<!-- Your scripts will go here -->
	<?php
}

You can upload those files under x-child/css and x-child/js directories.

Hope it helps :slight_smile:

Thank you for your feedback.

I was hoping you could help clarify, do I upload the files through the file manager in cPanel? I’ve found the pro-child folder, but not sure how to proceed from here?
I appreciate your help!

Hi There,

We do recommend to use a FTP client software (FileZilla client) to connect to your server and to manage files. You can refer to the following tutorial for that (https://www.youtube.com/watch?v=FugWMWSR_YA).

Hope that helps.