Components Issue (formerly Global Blocks)

Hello, in the old Global Blocks, you could see a visible I.D. number. Where do you find this I.D. using the new components?

I created (a few years ago) global blocks to display on my site on certain pages. I updated my site to the new X pro theme a few weeks ago. Shortly thereafter, I noticed that my global blocks were showing fine in the preview but wrong on the published page. I attached a screenshot showing the editor (where everything is correct) and a screenshot on the published page where it shows black/none of the formatting is correct.

What could be the issue?

Hello Cassity,

Thanks for writing in! There should be a dropdown where you can select which global block you would like to use. Please check out this documentation for further information:

If nothing is helping, we would love to check your site. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.

So I found the component I.D.

I’m using the IfSo plugin on my Wordpress site.

For example, if the user source is “Google” it will display a specific component (formerly global block). I have now realized that all the global blocks were updated to components and a new I.D. generated. I updated the IfSo plugin with the new I.D.'s but when I put the generated IfSo code into a Raw Content block it doesn’t show the component. However, if I put the component I.D. into just a raw content block it shows fine.

Can you help as to why this isn’t working or do I need to refer to the IfSo plugin support?

Thanks!

Hey Cassity,

Please be advised that we do not have any connection with the IfSo plugin. The Global Block component ID does not rely on other plugins. It is best that you provide us your WP details so that we can check the issue. If you are adding conditions when and where to display the global block, we would highly recoomend that you check out the Conditions and Assignments so that you can apply this to your global block and not needing any 3rd party plugin.

Cheers.

Thank you for sharing that link. Currently the use case for IfSo plugin is as follows:

If a users SOURCE is print media then display a specific global block.

I don’t see in the support article you linked the option to select a “users source” as a condition. Am I correct in this?

Thank you for the update.

What exactly do you mean by “user’s source” (Google or print media)? Would you mind providing a screenshot or an example—maybe a short clip?

Thanks.

So using a UTM tracking template I can assign a users referral source to the website.

See below is a URL example with the UTM source highlighted.

https://website.com/?utm_source=print+media&utm_medium=steakhouse

The point is if a user comes from a specific source (like google or a print ad) I want to display a certain global block. Within that global block is a special reservation booking widget.

Let me know if you need any further information. Thanks!

Thank you for the clarification.

Will the parameter utm_source or utm_medium be present on the page containing the blocks that you’d like to control the visibility of? If this is the case, in Customize > Conditions , try to create an Expression > String , click the database icon, look for Query Var , and set the key to utm_source or utm_medium . Please check the screenshot below:

This will check the value of the URL parameters and display the element accordingly.

Let us know if you need more info.

Best regards.