dev_John
Forum Replies Created
-
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] Bulk image optimization@tinypng ,
Wow! That’s great, thanks for the quick response and sorry we didn’t notice it! ??
After the start of bulk optimization, should we stay on this page until completion? Or can we close the tab and the browser?
Forum: Plugins
In reply to: [WP Store Locator] Show all results if just state chosenHi @tijmensmit
Thank you for taking the time to respond!
I hope you’re feeling well!Yes, of course I used .trigger(), I added some buttons using some similar code:
window.addEventListener("DOMContentLoaded", function () { $(document).ready(function() { $("#CUSTOM_BTN_ID_1").click(function() { $("#wpsl-search-input").val("SOME_STATE_VALUE_1"); $("#wpsl-radius-dropdown").val("SOME_RADIUS_VALUE_1"); $( "#wpsl-radius .wpsl-dropdown .wpsl-selected-item" ).attr( "data-value", "SOME_RADIUS_VALUE_1" ); $("#wpsl-search-btn").trigger("click"); }); }); $(document).ready(function() { $("#CUSTOM_BTN_ID_2").click(function() { $("#wpsl-search-input").val("SOME_STATE_VALUE_2"); $("#wpsl-radius-dropdown").val("SOME_RADIUS_VALUE_2"); $( "#wpsl-radius .wpsl-dropdown .wpsl-selected-item" ).attr( "data-value", "SOME_RADIUS_VALUE_2" ); $("#wpsl-search-btn").trigger("click"); }); }); });
everything works as I planned, except for one problem:
when I click on the first button, my script works correctly, I see what I need on the map and see the corresponding results in the list.
But if after that I click on any other custom button, the results will start to get confused, for example, the marker of the previous search result will remain on the map, but the results in the list will be correct, or the previous results will remain in the list of results, and a new marker will appear on the map. This applies to all subsequent button clicks. BUT, if I click the same button twice, the results will be correct again.It looks like there is no reset of some parameters after clicking on the next custom button.
Thanks!
Forum: Plugins
In reply to: [WP Store Locator] Show all results if just state chosenHi @tijmensmit!
Are you still planning to add a similar feature and release a new version of plugin? That would be really very helpful!
Is there NOW a way to add a custom button to the template (which would work using AJAX/JS) and simulate the search action (as if the user entered something in the search field and clicked on the “Search” button).
For example (briefly),
I created and use a Custom Store Locator Template, and will add something like:<a href="" id="" onclick="">New York</a>
When the user clicks on this button, it simulates the user’s actions, the same as if the user entered “New York” in the search box and pressed “Enter”.
Will it work?
That would help a lot!Thanks!
@enrico-urbinati, OK!
May I know your email, please, or something else to send a link to the dropbox? Unfortunately, there are no direct messages here..
Thanks!
I installed this test map (“Map of SX-70 Land Camera for RVM”), added it via the “RVM” plugin, and created a new test page with this map and several empty sections (“WPBakery Page Builder”).
Unfortunately I get the same/such errors (and empty page)…
I also checked it by disabling all plugins (except these two) and cleared caches…Uncaught TypeError: jQuery.fn.vectorMap is not a function at jquery-jvectormap-rvm-map-sx-70.js:1
Uncaught Error: Attempt to use map which was not loaded: rvm-map-sx-70 at new jvm.Map (jquery-jvectormap-2.0.3.min.js:2) at HTMLDocument.<anonymous> ((index):520) at i (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.K (jquery.min.js:2)
SCREENSHOT:
https://ibb.co/CM5ZMJmjust for an experiment, I tried going back to the old versions of plugins (the previous version of the “RVM” plugin and the previous version of the “WPBakery Page Builder” plugin [6.3.0] https://kb.wpbakery.com/docs/preface/release-notes/).
In this case the maps work great and there are no errorsBut I can’t stay on older versions of plugins because it’s not safe!
If this is useful for you, I can upload both versions of the “WPBakery Page Builder” plugin to the dropbox for you…
Thanks!
- This reply was modified 4 years, 1 month ago by dev_John.
Hi @enrico-urbinati ,
Thank you for your quick response!
#1
Unfortunately, installing and activating the “Enable jQuery Migrate Helper” plugin did not fix the errors. The map also doesn’t work and doesn’t display on pages, and I see the same errors in the browser console.
(after installing and activating the plugin, the all caches was cleared of course)#2
I couldn’t download zip archive because when I click on your link, I get 302 redirect to the Home page.Thanks!
- This reply was modified 4 years, 1 month ago by dev_John.
OK! Thanks!!!
Hi @mbrsolution ,
Could you give a complete list of features that don’t need to be used in this case, it might help!
Thank you very much!
Forum: Plugins
In reply to: [Custom Related Posts] Custom order/position for the settings section@brechtvds Oh Yes! Right! ??
Thank You!!Forum: Plugins
In reply to: [Yoast SEO] Wrong category of blog posts in breadcrumbsI couldn’t find any matches for “yoast_wpseo_bctitle” in the whole database.
I also found that all posts that have the wrong category in breadcrumbs (link to image instead of category) – so, in the “_posts” table, all such posts have a value added in the “post_parent” column. And the value is set as the ID of the same image.
If I change this value to “0”, then this post has the correct category in breadcrumbs.
I think that’s the problem.Is it safe for the site to replace these values for all problematic posts in the database?
“post_parent” : “image_ID” to “0”
Can this affect anything else? As far as I know for the type of posts – “post”, can not be set to the post_parent value in principle.
Thank You!
Forum: Plugins
In reply to: [Yoast SEO] Wrong category of blog posts in breadcrumbsHi @pcosta88,
I meant that this was enabled via the Yoast SEO plugin settings.
Of course, the code was added to the templates for the blog post page, otherwise it wouldn’t work
<?php if ( function_exists('yoast_breadcrumb') ) { ?> <div class="wrap-breadcrumbs"><?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?></div> <?php } ?>
2. The Yoast Breadcrumbs store in the WP_postmeta database where the meta_key is _yoast_wpseo_bctitle. So you can see the relationship. Does that match your expectatons?
Thanks, I’ll take a look at it now!
Forum: Plugins
In reply to: [Yoast SEO] Wrong category of blog posts in breadcrumbsHi @devnihil ,
Yes, as I said, all plugins, themes, and WP core are always updated to the latest version. We update everything as soon as new versions become available.
If you have already confirmed both Yoast SEO and WordPress are up to date and the issue is still occurring, can you please try the following:
1. Install & activate the Yoast Test Helper plugin
2. Go to Tools -> Yoast Test
3. Hit the “Reset Indexables & Migrations” button
4. Click the “Click here to speed up your site now” buttonNo, it didn’t help. For these posts, the image title and link to the image in breadcrumbs are still displayed instead of the post category.
I created an STAGING copy of the site, and removed this image from the media files (via the WP admin panel), after that all the categories of posts became correct (this is about those posts that instead of the category displayed this particular image in bread crumbs).
This action resulted in a category correction in breadcrumbs.But I can’t do this on a live site because we need this image as an element with the current ID (for this reason I also can’t delete and upload it again).
Can you tell me in which table in the database I can see the relationship between posts and the specific breadcrumbs that are assigned to them? So I can manually change this? Does this make sense?
Thank You!
Forum: Plugins
In reply to: [Yoast SEO] Custom output/display description in the templateWow that’s awesome! Thanks!
Forum: Plugins
In reply to: [Custom Related Posts] Show image as backgroundThank You @brechtvds,
I think I could use a “crp_output_list_item” hook (in my theme’s functions.php) to completely rewrite the “function output_relation( $relation )” function from the “../output.php”. Correct?
Forum: Plugins
In reply to: [Autoptimize] Using two pluginsThank you very much!