Why I Can't Put Ad Code on My Blog?

7
4.5K followers
Updated

Hello WA folks,

I need help with my blog. When I paste a code in header.php which should display ads on my blog I get an error you can see on the image below.

Can anyone tell me what should I do to fix that? Why it won't update the file when I paste ad code?

You can open it in a new tab to zoom the image.

Thank you in advance

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

8

Featured Comment

Yes, contact SiteSupport and they will get you sorted right away.

https://my.wealthyaffiliate.com/websites/support

Thanks, Kyle! I contacted them! :)

If I remember correctly, you need to as Site Support to unblock it for you. WA does this to protect you, but if you need to edit those files, you obviously need them to unlock it.

I may be wrong, but I believe asking Site Support would definitely point you in the right direction!


- Stefan

Thank you!

Hi,

I don't know why is this happening. Updating your theme files live isn't usually a problem.

However, maybe some plugin is protecting users from editing the theme - or the theme itself comes with some security option.

You can log into the Cpanel of your site, using the credentials provided by your hosting. In there, you can find the header.php file, download it, open it & paste the code, and upload it again to the site's files.

It can be a lot of work but maybe check documents received along with the theme to see if there's a quick way to disable this security feature.

I hope this helps!

Thanks, Dario, I will definitely try it!

Ako želiš da ti unešeni skript radi moraš ga definisati u function.php

Hvala, uspeo sam!

See more comments

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training