I applied a smart rule to a module (Power Sec Hero) on my landing page so that the image could be read on both cell phones and computers. But nothing happens. And the image doesn't display properly on either computer or phone. I don't understand how to proceed.
The Power Sec Hero module has it's own background image option for desktop, tablet, and mobile so smart rules aren't needed.
If you aren't seeing the smart rule, it's likely not being recognized by the HubSpot preview tool - I've found that they are best verified on actual devices.
I have a problem with the “smart rules” if you can help me please:
I happen to have created a module that fulfills the carousel task, which I made with swiper js. The module works correctly, each slide has 2 columns, on the left an image and on the right text. This is dynamic, you can add as many slides as you want, and you can edit the image and text as you like. Both in the editor, in the preview and in the published page it works correctly. The problem appears when I apply smart rules, for example in my case, I have applied the smart rule of country, then for colombia I want to show some content and in mexico for example I want to show a different content. In the editor it looks correct, in the preview, it also looks good. The problem appears when I publish it, when I go to the public link no content appears. So I inspect the code in the browser and I can see that the structure is displayed (div, classes, id, etc), what I can not see is the content, it is as if it did not exist. That is the problem that I can't solve. Thanks for your help.
Hi @Jose10! When you go to the public link, are you manipulating your browser to appear as if it is coming from the different countries? I believe the smart rules for countries are utilizing the IP Country Code and you'll have to have a tool that can change this. I've not worked with such tools myself but I've seen others do it.
That there's no content at all suggests that in the Default state of the module, there is no content. Have you added content to the Default state? For example, when a visitor is coming from a country that does not have a smart rule, they will see the Default content.
*************************** Did my post solve the questions or challenge? Please mark it as a solution for others to find.
Thank you very much for your answer and for your intention to help, thank you very much.
I will provide more details of what is happening:
Module The module is a slider which uses the Swiper library https://swiperjs.com/ and works correctly without smart rules. Each slide consists of 2 columns, the left column is an image and the right column has image and text. These two columns are enclosed in a box which is a slide. These slides have a repeater which allows the user to add as many slides as desired.
Things I have managed to discard: The problem has nothing to do with either the image or the text. I created another image and text module, but not a slider, and it looks correct, both with and without smart rules.
Supposed conclusion. The problem is in the slider, because as I mentioned before, the image and text module work correctly, but apparently when the intelligent rule detects the slider there is a conflict.
Clarification: The slider works correctly when the smart rules are not applied, the error occurs when I apply the smart rule of the country. It is true that I would need a VPN to verify if by putting another country different from mine, to be able to view what I have done, but in this case it does not apply because I am just adding the smart rule of my country. And in the case of other countries, I have people in those places who can verify what I am saying and the error continues to occur Also clarify that in the HubSpot editor everything is seen correctly and even in the preview, but when I visit the public page, that is where the error is detected.
I will show you the HTML, CSS and JS code, in addition, how I view the error and what I managed to see in the inspector
I could leave the error page, but I would need you to specify the country you are in please to apply the smart rule according to your location.
Even without an intelligent rule, the problem is the same. I tried previewing the page on my computer. I've also sent the link to view as an "external link" from both a computer and a cell phone (same problem). Here are two screenshots (one with destkop, the other one in Mobile view).
No, the image appears, but not correctly. The smart rule I added is "Device Type" Mobile and Desktop checkboxes. Nothing else since HubSpot doesn't allow me to do any stylish changes in smart rules...
The module I used is a Power Sec Hero, maybe the problem comes from that ?
You can see two screenshots in the other conversation above.
The Power Sec Hero module has it's own background image option for desktop, tablet, and mobile so smart rules aren't needed.
If you aren't seeing the smart rule, it's likely not being recognized by the HubSpot preview tool - I've found that they are best verified on actual devices.