Convert Plus > Modal works but nothing else

Hello,

I just took over as the web admin for an existing site, and I’m very confused by something that’s going on.

There is a modal popup that’s Live and active and working, but I don’t understand why. It is NOT turned on for the entire site, nor is it targeting any specific pages. You can see the settings here:

* “Target Pages” settings

The trigger is just a simple 30 sec. delay after the page loads, and you can view that here:

* Modal Popup example (Wait 30 sec.)

So, as far as I can tell, that one should not be working, but it is. Meanwhile, I’ve tried to create a slide-in AND an info bar. Neither of them work.

I’ve deleted the slide-in and am now only working with the info bar. Yes, it is LIVE, and I have the cookies turned OFF. I’m only targeting a single page while testing, but eventually, I’d like it to be active on the entire site:

* Info Bar should be active here and trigger 0.2 sec. after page load

* “Target Pages” settings

I’ve checked all the other settings at least 6 times, and I’m confident I’m not missing anything obvious. I’ve checked custom CSS and custom JS to make sure nothing was blocking it, but I’m not able to find anything.

Any idea where to look now?

Hello Dominik,

Thanks for writing in! Always remember to clear all caches since you are using WP Rocket so that the code from the latest release and all your site setting changes are always in use. This will help you to avoid any potential errors. And please clear your browser cache too. You may use private browsing mode in testing your site to make sure that you are viewing the latest codes from the updates and not the cached version in your browser.

This links might help:

Kindly let us know how it goes.

I always test in a private window, and I clear the cache every time I change a setting. So all your suggestions have already been done too numerous times to count.

Hello Dominik,

If that is the case, please provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Thank you in advance.

Note added. Thank you.

Hello Dominik,

When a modal, slide in or Infobar is live, you still need to assign it to a post or page or even Enable On Complete Site option. If still nothing displays, this could be caused by a 3rd party plugin. You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

At the moment, I have temporarily disabled your ClickFunnels and WP Rocket plugin. Please continue with the plugin conflict test.

Kindly let us know how it goes.

Please NEVER make any changes on the site again without my permission. That is unbelievably unprofessional and invasive, and I am very unhappy about this. We are currently running ads to pages that USE the ClickFunnels plugin and now people could have gotten a 404 error.

Secondly, I’ve already explained what is happening to both popups. One is NOT assigned to a location, but it DOES trigger and show up, but the other IS assigned to a location but DOES NOT ever trigger.Which tells me that a plugin conflict is very unlikely if one works and the other doesn’t.

Allow me to ask, did you actually read and consider my first message?

Hi Dominik,

We are sorry for the inconvenience, we understand that it was a bad practice and we will make sure that we are not going to touch anything unless we have permission.

I checked the backend of the website and could not find any unexpected behavior but I see the problem that you experienced.

I checked the same version of the ConvertPlus and Pro theme that you have on my local installation and there was no problem like yours.

This shows that the problem is limited to your website environment and installation and is not a core code issue of ConvertPlus. To be able to dig deeper and test we will need you to create a staging version of your website so we can perform tests to see why this is happening.

Thank you for your understanding and we do apologize again for the inconvenience that you experienced.

I included the login for the staging environment in a private note above. There are some errors due to the staging environment so please let me know if I need to address any of them so that they don’t affect your testing in regards to Convert Plus.

Thank you.

Hi Dominik,

That sounds a caching related issue to me, please CLEAR and deactivate all your caching and optimizer features for awhile (plugin, server-side, CDN, and browser’s cache).

I have check your staging site, and it looks like there is something conflicting with the ConvertPlus

The Convert Plus panel should not be up there, it should be under settings and that is not the icon of the Convert Plus. The issue can be a two-fold, and issue with a caching and a plugin/script conflict.

On your staging, please deactivate all your plugins (except ConvertPlus) and CLEAR and deactivate all your caching and optimizer features. And see if that makes the Info Bar (or modal pop up) normally. If it works, then start activating your plugins one by one again and see which will cause the issue.

Thanks,

Through your suggestions and additional systematic testing, I found the problem. There was no conflict of theme OR plugins. It was a few lines of custom code in the child theme’s functions.php file.

function check_article_tags( $display, $style_id ) {
	if ( x_is_article_item() ) {
		/* Show Default Convert-Plus if article IS NOT tagged 'business' */
		if ( ! has_term( 'business', 'article-tag' ) ) {	
			// Replace style id with your style ID (desktop/tablet/mobile)
			if ( $style_id == 'cp_id_41926' ) {
				$display = true;
				return $display;
			}
		}
		
		/* Show Different Convert-Plus if article IS tagged 'business' */
		if ( has_term( 'business', 'article-tag' ) ) {		
			// Replace style id with your style ID (desktop/tablet/mobile)
			if ( $style_id == 'cp_id_22f7d' ) {			
				$display = true;			
				return $display;
			}
		}
	}
}
add_filter( 'cp_target_page_settings', 'check_article_tags', 10, 3 ); 

I understand what this code is doing. There are two modal popups live on the site as well, and all this code is supposed to do is show one of those popups or the other depending on how the article is tagged.

What I don’t understand is why, or how, it is blocking the other “pop-ups” (slide-ins and info bars) from being activated. Is there any new or updated custom code hooks to achieve the same thing with the modal popup, but not affect the others?

Hey Dominik,

It could be that there’s a problem with ConvertPlus filter. It would take time to test that filter, though, and if an issue is found, we’re going to report that to ConvertPlus.

If you want to display the modal conditionally, ConvertPlus has a built-in feature for that. You can display the modal depending on tags (see screenshots below). Have you tried the Target Pages feature? If so, what was the problem with it?

image

That is, by the way, the official method to display modals conditionally and not by custom code. We also do not provide support for custom codes except reporting issues with filters to the developers.

Thanks.

I believe the problem is that the “articles” we’re trying to target have a ‘type’ of X-article, and that the tag you told me to choose is only connected to ‘normal’ type of articles. Or that’s what I’ve observed through my testing.

Rather than writing all of that out, I made a screen recording, and walked you through the whole process and showed you why what you mention above isn’t working.

Hey Dominik,

Thanks for recording a video. I tested again and this time I assigned the default WordPress Post post type Tag Target Pages option worked (see screenshots in the secure note).

I confirm that it doesn’t work only for your custom article post type tag. Please note that we don’t have X Article post type. What we have is X Portfolio only. This means that the issue is not with ConvertPlus but your custom post type setup. This might be the reason why your custom code does work also.

Please have a developer or your developer fix your custom article posts type or replicate the default WordPress Post post type setup. Try making the CPT taxonomy names unique. Just note though that we cannot investigate your post type setup. That is beyond the scope of our theme support.

Please note that our support with ConvertPlus is limited only to the features that are offered out of the box. I’ve tested the related feature (Target Pages) and it works using the default post type. Though ConvertPlus can work with custom post types, this involves custom development work moreover that ConvertPlus is a third-party plugin also. That means that we are not entirely familiar with its codebase. With that said, if you will still have issues with your custom post type, I’d recommend reaching out directly to ConvertPlus developers. You will have to purchase a separate license to do that though but I believe it would be worth a try.

Hope that leads you to the right direction and thank you for understanding.

Thank you for the suggestions. I will dig into that when I have time. One quick question, which might also be outside your support, but I’ll ask anyways:

If my custom code in functions.php only targets the custom post type, X-article, do you have any ideas why it would block all the other popups, info bars, and slide-ins from working on regular, normal post types?

Hey Dominik,

There might be a setting in your Post Type setup that ConvertPlus doesn’t like. What that is exactly will require digging further in your custom code and ConvertPlus’ code and as you already know, that’s beyond the scope of our support.

Thanks.

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