• Resolved donbmarks

    (@donbmarks)


    I’ve installed the plugin on 3 different sites, I thought the styling might be tied into a wordpress theme issue, but its not. I want to be able to style the output of the City into an H1 in some cases or normal text, for some reason I cant find any documentation on this and my text is showing the city with a box and different color background which limits what I can use this for, can anyone help with this.

    THANKS!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter donbmarks

    (@donbmarks)

    Still looking for some help here on how to style the output format of the Geo location data so I can incorporate into headers, etc.

    THANKS

    (I am not part of the development team.)

    Don, it’s hard to understand what your issue is, or at least hard to understand what the issue is with Goip.

    The box at the bottom of your page (just after the text “…to prevent mold growth.”) is being styled by the twentytwenty theme. It is looking like it does because it is an input type and that is how twentytwenty styles input types.

    If you put the Geoip code into a header, then your theme should pick up the header styling and format it accordingly. If it doesn’t, it might help if you copy & paste here the exact text you are entering into your editor to get the geographic information.

    To change how the theme handles formatting is a larger matter; nothing to do with Geoip. Search on the internet on “wordpress child theme” to handle that.

    To help assure you that it does all work, take a look at this page. At the top left, I pull out your current country for a simple welcome message. Just under the heading “Judicial Bias” is text that depends on which country you are in (some countries, I have specific data for, others I just say “It is well known that…”) The same sort of thing happens in the section on Criminality of Parent. Then at the bottom of Call to Action, in between “…implementation of the Study.” and the next heading, are some texts that, again, only appear to people in specific countries. I do all this to turn a global report into what seems like a report targeted for people in a specific country, with localised information where I know it. You will see that the formatting is fine: I have done nothing special to achieve the formatting to be just the same as the text around it.

    I hope this helps you move forward.

    Thread Starter donbmarks

    (@donbmarks)

    Doug, thanks for replying, the issue is that none of the traditional stying I have tried to apply appear to work and the output is consistent with the GEO Ip as normal text in a box

    for example, adding this,
    <h1>[geoip_detect2_text_input name=”city” property=”city”]</h1>

    does nothing, I’ve tried to upload the plugin on different sites with different themes and the output is consistent, so I am thinking its not theme dependent.

    Appreciate the help!

    Don, that’s the wrong shortcode. What you are doing is creating a text input field (for use on things like contact forms) with the city already filled out.

    I presume you just want to display the city, not take an input.

    I don’t use the city database (I’ll explain why later) and can’t be sure of the right shortcode to use but I guess it would be something like
    [geoip_detect2 property="city" default="Your location" lang="en"]
    I’m not entirely sure of that and the documentation of all the possible shortcodes seems to have wandered off the internet. The default is important because it is possible that no city will be available.

    The reason I don’t use the city database is because it is often inaccurate. Most internet users log on to the internet through an internet service provider (ISP). When the log on, or when their computer remakes a connection, the ISP gives them an internet address to use. The internet address could have gone to any of their customers, over an area of 100 miles or even more. And the best guess for where the computer with that internet address is right now, is wherever the ISP is.

    In large cities, this is generally not a problem because a large ISP usually has attachment points in the largest cities. A cheap or startup ISP might only have one or two in a small country like France and might only have half a dozen even in the USA: making even the State difficult to be sure of. My own, large, ISP in the UK is in a city about 35 miles away, though they sometimes will attach me through a city about 60 miles away. It’s fun to see advertisers telling me that there are girls in <city> nearby just wanting to meet a man like me!

    It’s up to you: if most of your customers are in large cities, you’ll probably get it right about 70% of the time, maybe more. Just don’t assume you can hope for location to be exact based on a user’s IP address.

    Thread Starter donbmarks

    (@donbmarks)

    THANKS, that was the issue, I appreciate your help!

    Plugin Author Benjamin Pick

    (@benjamin4)

    I appreciate it as well ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change The Output Styling’ is closed to new replies.