-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flags not loading #6
Comments
Hi @SpenMillard, Flags don't need to be switched on and you should see them. Your screenshot shows that fonts are not loaded too. I never had such feedback and am pretty sure it's a local issue from your setup. I'm closing the issue for now. Try to have a look at the network tab in Chrome to see if the flags sprite loads. |
Thanks for getting back - yes, I thought they should appear by default too. I looked through the code and the following markup is not being loaded from acf-country.js:
Is this meant to appear within Kind regards, Spencer |
Can you tell me more about your environment (OS, browser, WordPress version, etc.)? Your screenshot shows errors in the console, can you show them? |
Hi Nico,
Thanks for getting back to me.
I have the following set up:
OSX Sierra: 10.12.6
Safari: 11.0.1
Wordpress: 4.8.3
I have attached the error grab form the console tab (console.png) - they only refer to the Evernote extension.
the acf-country.js file is loading (see other attached image acf-country.png) which is meant to load the flag markup. Strange, isn’t it?
I have also attached a grab of the front-end markup - you can see each country inside the <li> but the flag is missing, which I presume should appear within the <li>?
Kind Regards,
Spencer
![acf-country](https://user-images.githubusercontent.com/457918/32850445-1330ae4e-ca2a-11e7-9bc2-84a95cfd8b18.png)
![console](https://user-images.githubusercontent.com/457918/32850454-1b379724-ca2a-11e7-8ffa-af830efa7568.png)
![inspector-markup](https://user-images.githubusercontent.com/457918/32850459-1dc76c08-ca2a-11e7-9910-e4d787b4da22.png)
… On 2 Nov 2017, at 17:26, Nico ***@***.***> wrote:
Can you tell me more about your environment (OS, browser, WordPress version, etc.)? Your screenshot shows errors in the console, can you show them?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#6 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAb8vg2qUuNUYyQn8VA50DC3KQwHqjFTks5syftjgaJpZM4QOxMg>.
|
Hi Nico, I re-uploaded my screen grabs from my previous message - I wasn't certain you received them. Regards, Spencer |
Hi @SpenMillard, You seem to be using ACF in a strange context. Why do the field appear on the front end? It's not supposed to. Why Looks like an edge case to me. |
Hi Nico, Yes, I am using your plugin for a front-end form - why would this affect the flags appearing? I installed the plugin via the CMS, as I would normally. Cheers, |
That's something it would have been worth to know ^^ Is this something ACF provides or are you using a plugin to achieve this?
Probably because it does not resolve flags paths. |
Sorry Nico, I didn't realise it was relevant. Yes, this is something ACF provides for using: Any idea how I can resolve the flag paths? All the correct files appear to be loading, but this is not being injected into the page:
Strange, isn't it? Regards, Spencer |
I don't know how ACF handles fields assets on the front end and this would require some testing (setting up a test case, figure out what's going wrong, etc.). If you can provide a test case, I may have a look at it. I'm sorry but this is a plugin I built for a project and open sourced so some people could benefit from it but I don't use it anymore and can't spend more time on it. |
Hi there,
The plugin works great but the flags are not loading - do they need to be switched on?
All dependent files are present and have loaded properly.
Thanks
The text was updated successfully, but these errors were encountered: