jordanwebdev
Forum Replies Created
-
Excellent! Thanks. Is there a documentation with all available functions? I see widgets and shortcodes, but not functions.
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Change Country NamesThank you Oscar, that sounds like it would work, but we’d run into problems on plugin update. We manage lots of sites, so we can’t afford to keep checking back to this site and modifying again once a plugin update occurs.
Perhaps this should be a feature request, then. Great plugin, BTW!
It worked on one site, but I tried it on another site, and the thumbs don’t appear to have the “orig-file” data attribute, so I’m trying to figure out a new solution…
I think this one works as an alternative:
$(this).prop('src', $(this).data('lazy-src'));
- This reply was modified 7 years ago by jordanwebdev.
For everyone with this same problem, I came up with this solution. It checks if the 1×1 exists first, so in theory when JetPack updates their plugin, this code won’t even run.
function update_thumbs() { $('YOUR IMAGE SELECTOR').each(function() { var src = $(this).prop('src'); if (src.indexOf('1x1.trans.gif') !== -1) { $(this).prop('src', $(this).data('orig-file')); } }); }
No, I created the AJAX call myself. Just a basic jQuery load, loading HTML from one page into the current one.
Is there anything I can do now? We’re launching the site soon so I can’t wait for the update.
I’m experiencing this same issue as well. The issue is that the AJAX update loads the 1×1 placeholder. We need a way to reinitialize JetPack’s lazy load after ajax call. I vaguely remember there being a JavaScript function that handles such a thing, but I forget what it’s called. I do believe it had the word jetpack in it, though.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF Options page configI do not see the language switcher. I only see the generic one in the wp-admin, but that does not appear to be what I need here. I need to fill those ACF fields in multiple languages.
At the top, you can see the screen object is outputted.
Oddly, it is now showing my pin on my pinterest account that I created. I suppose it just needed some time?
Anyway, I’d still like to be able to display my client’s pins, rather than my own. Do I need to generate a new access code while logged in to their pinterest account? I didn’t think I’d have to use their account, but I suppose that’s how pinterest works?
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF Options page configYou’re welcome. Sorry to bring this up again, but I’m still unable to get my options page working. I have a text field on there (as well as some other fields), and not even the text field is translatable.
Here’s my basic wpm-config.json file, which is located in my theme’s root.
{ "admin_pages": [ "theme-settings_page_acf-options-footer", ], }
I got that ID displayed by putting the following in functions.php
function id_WPSE_114111() { var_dump(get_current_screen()); } add_action( 'admin_notices', 'id_WPSE_114111' );
- This reply was modified 7 years, 1 month ago by jordanwebdev.
- This reply was modified 7 years, 1 month ago by jordanwebdev.
- This reply was modified 7 years, 1 month ago by jordanwebdev.
Thanks for the response. I created a new pinterest account called dolcedev in order to get an access token. User cottagepaint is not mine, however, even if I enter dolcedev into the shortcode, it does not show my test pin that I just created.
[fts_pinterest type=pins_from_user pinterest_name=dolcedev pins_count=6]
https://www.pinterest.ca/dolcedev/pins/
It should be showing that dummy image. I did in fact click the button to automatically get the token.
Forum: Plugins
In reply to: [WP Store Locator] Feature Request: Smart City SelectionNote that I just found the autocomplete feature. This is a very useful feature, and helps avoid this issue!
This feature request may still be useful, but it seems less important if using the autocomplete feature.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF Options page configI added “nav-menus” because ACF was not working on my menu page unless I disabled this plugin, so I thought maybe I had to update the config file to make it work.
I use the latest PRO version of ACF. I am trying to add an image uploader to menu items. It works fine when I deactivate WP Multilang but with the plugin active, I don’t see the uploader in the menu items.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF Options page configI used get_current_screen, but it gives me back a string, not an int.
[“id”]=> string(36) “toplevel_page_theme-general-settings”
Here is my wpm-config.json file, located in the theme root ( tried for my nav menus, too)
{ "admin_pages": [ "toplevel_page_theme-general-settings", "nav-menus", ], }
No luck on either page. To make things worse, ACF is now not working on the edit menu page, unless I deactivate the plugin.
- This reply was modified 7 years, 1 month ago by jordanwebdev.
- This reply was modified 7 years, 1 month ago by jordanwebdev.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Menu Custom FieldsHaving this same issue with ACF. I think we need to make a change in the JSON config file.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF Options page configI too am having an issue figuring this out.
Here is my options page code
acf_add_options_sub_page(array( 'page_title' => 'Theme Header Settings', 'menu_title' => 'Header', 'parent_slug' => 'theme-general-settings', ));
I tried adding the “post_id” parameter and giving it an obscure number (9256), then adding this to my config file
{ "admin_pages": [ 9256 ], }
No luck.