• Hi, I want to change a section background image to a different location. But I can’t do that. I can’t do it for the shortcode. Is there any way to show different background images for different countries?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ivijan-Stefan Stipic

    (@ivijanstefan)

    You can use CSS classes or JavaScript objects.

    Here is documentation for the JavaScript: https://cfgeoplugin.com/documentation/advanced-usage/javascript-integration

    For the CSS classes you can check in the WP Admin-> Geo Plugin under tab “CSS property”:

    These CSS settings are dynamic and depend on the geolocation of the visitor.

    A different CSS setting is generated for each state, city, region according to the following principle: cfgeo-show-in-{property} or cfgeo-hide-from-{property}, where the {property} is actually a geo-location name in lowercase letters and multiple words separated by a minus sign.

    Thread Starter syshahadot

    (@syshahadot)

    Thanks. Could you show me a simple example? how to write that CSS?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change background image by geolocaiton’ is closed to new replies.