Putting ads on a site with X

Hiya everyone, I run a site called vividtreks.com. Still quite new to the whole thing but I’ve just tried using the plugin called Insert Headers and Footers onto my site in the hopes of later adding ads onto my site. However, it seems the plugin is not compatible with X as I’ve just gotten a blank white screen throughout my site shortly after leaving the plugin activated. What are my alternatives in regards to placing ads onto my site without any plugins that clash with X?

Thanks for your time.

Hello There,

Thanks for writing in! A blank screen which appeared after you have installed the plugin could be caused by an exhaustion of your PHP memory limit. ​We recommend that you increase your memory allocated to PHP. To increase it, please edit your wp-config.php file and insert these lines:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

And since you have installed WP Fastest Cache, please clear your plugin caches after making any site changes before you test your site.

We would loved to know if this has work for you. Thank you.

Hiya! Thanks for the quick response.

I’ve just added the two lines into my wp-config.php and now the last three lines before /*That’s all, stop editing! Happy Blogging. */ are:

define(‘WP_DEBUG’, false);
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );

I’ve tried clearing and purging my cache but I’m still left with a blank white screen as soon as I activate the Insert Headers and Footers plugin.

Hello There,

There could be a fatal error when you install the plugin. Please enable the debug mode. You can do this by opening wp-config.php and adding define( 'WP_DEBUG' , true ); just above /* That's all, stop editing! Happy blogging. */

For example:

define('WP_DEBUG', true);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, there should be some error output describing the issue in more detail.

Please let us know how it goes.

I’ve tried adding the new true define define( 'WP_DEBUG' , true ); line but the page still remains blank. I’ve also tried changing the define('WP_DEBUG', false); to define('WP_DEBUG', true); but , unfortunately, nothing has changed.

Hey There,

​To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look?

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

Thank you.

I’ve created the note

Hello There,

I have checked your settings and it turns out you have inserted an unclosed script which made it invalid thus messed up the whole page instead.

I went ahead and resolved the issue. Please check your site now.

Oh geeze, it was just as simple as that.:sob:

Thank you for your patience and going through all the hubub. Much appreciated!

You’re welcome!
We’re glad we were able to help you out.

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