Where Do I Need To Go To Add Code On My Website?

Posted in: Newspaper
Post count: 37

Hi, sorry for the newbie question. I’m trying to verify my domain and need to add a code to my homepage and wanted to see where I needed to go to do this. I see a lot of people adding codes to their websites but I haven’t been able to find where I need to go to do this.

I look forward to your reply.

Here is a link of what I’m talking about: https://www.godaddy.com/help/verify-your-domain-by-adding-code-to-your-home-page-20213

Justin

Post count: 23312

Hi Justingiles,

You will have to add the code in header.php file between head tags, like this -> http://screencast.com/t/79hJsfNzs -> http://screencast.com/t/Qm7HBzAnWOOR

Hope this helps!

Thanks.

Post count: 37

Hi Catalin,

Where do I find the header.php file?
Is that in the Newspaper folder that I downloaded after I bought the theme? If so, I’m not seeing it.

Best,

Justin

Post count: 37

I believe I have found the header php file… but mine (http://www.screencast.com/t/gjacsLZg) looks different than yours (http://screencast.com/t/79hJsfNzs). Do I need to open it to a specific program?

Best,

Justin

Post count: 23312

Hello Justingiles,

I am using the PHP Storm to edit the PHP files. Please keep in mind that the files are the same. The Header.php is located in the root of your theme.

Thanks.

Post count: 37

But how do I add the code I need into to the header.php file? Do I have to have Adobe Dreamweaver or some type of software like that, or can I just open it up and paste it in?

I understand what coding is, I just need to be able to get to that point.

Hopefully that makes sense.

Best,

Justin

Post count: 23312

Hello Justingiles,

You can use Notepad Plus+ or any software you have and simply edit that file through copy/paste the code.

Thanks.

Post count: 37

Hi Catalin,

Thank for the tip about Notepad Plus. I downloaded it and have been able to open the header PHP file now. My questions now is once I add in the code from Godaddy (between the head tags) is that all I need to do, or is there another step after that?

Best,

Justin

Post count: 285

You have to verify your domain ownership

Post count: 37

nalrolf,

Yes, that’s why I’m trying to add this code so that my website can be verified. I just need some help doing it the first time and after that it shouldn’t be a problem when I add or modify other things moving forward. I understand coding and what it does, I just got to get to that point. Do I just add the code and save the file and that’s it, or are there other steps involved?

Post count: 285

Nope.
1. add your code (save the file & upload to server)
2. verify your domain ownership

That’s it

Post count: 6535

Hi

You can use a ftp client tool like filezila to upload the modified file in your-wp-install/wp-content/themes/Newspaper, this is the root folder of the theme in wordpress.

Thanks!

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.