Help with CSS
-
Hi 🙂
I’m testing your CF Geo Plugin.
My website use WordPress desing with Elementor.I need to hide or show one specific widget of pricing in 3 different landing pages, depending on the visitor Country IP.
I need one for my country (Argentina) and other for de rest of the world.The thing is, in order to show or hide only that widget but not the entire page, I need to program the CSS code for the specific widget and, honestly, I can´t fin my way around it.
I looked in forums and tried a lot of things but I can´t make it work for the specific widget.
So, before I suscribe to a pay licence, I would like to ask you if you can help me with the CSS code.
Can you give me an example of how to code it?I´ll be waiting for your answer. Thank you in advance and best regards.
-
Hello,
For the Oceania and Africa you can use like:
cfgeo-show-in-oc cfgeo-show-in-afAF => Africa NA => North America OC => Oceania AN => Antarctica AS => Asia EU => Europe SA => South AmericaHere is JSON list of the countries in JSON format:
https://cdn-cfgeoplugin.com/v2/countriesTo format JSON in readable format, just use this Chrome extension:
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=enSorry that it’s a bit complicated, soon we will create a small tool where you can easily do what you want with a few clicks.
Let me know if you have any other question.
Best regards!
Hi, @ivijanstefan 🙂
Thank you very much for your answer.I´ve tried what you suggested. I´ve entered this exact line in the CSS block of the widget in Elementor:
cfgeo-show-in-oc
And I keep geting an error that says “Expected LBRACE at line 1, col 17.”
I fear am a little dufus in CSS, so I need the exact code that would work in CSS code.
Sorry to insist, but, can you please help me again?
Thank you very much, really 🙂
Hi, you also can use javaScript if you have knowledge.
https://cfgeoplugin.com/documentation/advanced-usage/javascript-integration
Generally the CSS must work, but if there is some custom CSS that tramples ours, then it is a bit problematic. Just confirm if our CSS is being overwritten by another plugin.
Best regards!
The topic ‘Help with CSS’ is closed to new replies.