5AMsan
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Allow custom HTML attributes to gutenberg elementsI believe, since using Block editor,
wp_kses_allowed_htmlfilter will not do the trick, but hooking in block editor JS element would be a better path.Any official information about this issue ?
Did a fresh install of an On-Premise instance + WP-Matomo and stil no luck, the WP plugin can’t connect.
Doing a cURL POST request on SitesManager.getImageTrackingCode do respond correctly.
The official extension is now broken.After some testing, the only method in error from tests reported by @banzine is
global.getPiwikVersion
giving reponse{ "result": "error", "message": "The plugin global is not enabled. You can activate the plugin on Settings > Plugins page in Matomo." }Forum: Plugins
In reply to: [ShopWP] Button not showingI can close this.
Forum: Plugins
In reply to: [ShopWP] Button not showingGreat great great! Just what I was looking for!
Thank you 😉
Forum: Plugins
In reply to: [Fontsampler] Not showing up when loading the first timeWorking great!
Thank youForum: Plugins
In reply to: [Fontsampler] Not showing up when loading the first timeHi @kontur
Thank you for support and this nice plugin.
I’m developping a theme using ajax page load. I tried to figure out how to load Fontsampler correctly had troubles to get it working.
Using the code you provided doesn’t load the JS file but the CSS does.
Usingwp_enqueue_scriptinstead ofwp_register_scriptdo load the JS file, obviously.
But then Fontsampler is not initialized (cf. https://www.pepite.world/wp-content/uploads/2020/04/Annotation-2020-04-16-164054.png).
Then I managed to initialize by callingfontsamplerSetup()in Chrome debug console.
How should I use this function to gracefully initialize all samplers in page ? Or is the function to use and nothing else ?Thank you again for this masterpiece of plugin for WordPress.
Forum: Fixing WordPress
In reply to: meta_query in pre_get_postsWell, I’m still stuck on this. Any idea to bypass this issue ?
Could I try to fix the query with some filter ?
Forum: Fixing WordPress
In reply to: meta_query in pre_get_postsThank you for this Dion.
I’m sure it will return something since it returns results with another meta query (ie. if I use a 5 digit number for “lot_zip”).
The 0=1 shows up when the hilighted condition is used.Forum: Fixing WordPress
In reply to: Use onclick to make thumbnail images become the main image,You can achieve this with jquery, either by loading in target div the bigger image from the thumbnail (ie. using a rel attribute) or by loading all images and use a show/hide script.
Something like :<a rel="mybig-001.jpg" class="innerlink"><img src="mythumb-001.jpg" /></a> <div id="innertarget"></div>Jquery will looks like
$('a.innerlink').click(function(e){ $('#innertarget').load('http://myurl/'+$(this).attr('rel')); });OK all good, finally it looks like using single quotes in a formula for passing variables is a bad idea.
I loaded all datas once using hardcoded vars, then passing vars in double quotes got it to work properly.I work on it this morning. Tell you more about soon.
Ok,
Now I manage to get my results correctly but only if I declare variables in Google Script, hardcoded. Variables seem to get lost from spreadsheet to GS…Nop, no success… I’m screwing the google script around… Think I’ll go and see deeper in the plugin now.
First thing to fix : I use a custom folder install, so my “siteUrl” passed to the first function should be ‘http://mysite.com/my_wp_folder’