Boat
Forum Replies Created
-
Because the .above::before border and height not dynamic from parent.
Try to change px to em.above::before { .. height: 0.375em; border: 0.09375em currentcolor solid; }
Forum: Developing with WordPress
In reply to: using ajax to return jsonasync: false is deprecated and not good practice for AJAX (AJAX should Asynchronize)
So I’ll try to share my experience…‘geoData’ at last line result is undefined because it returns ‘geoData’ immediately while jQuery.ajax still in progress, It needs more a little time to request and get the result before announcing var geoData in the success callback
So, if you need to create some AJAX function for better reuse or something like this. I suggest trying this instead.
Create variable of AJAX function
var getGeo = function() { return jQuery.ajax({ url: '/wp-admin/admin-ajax.php', type: 'POST', data: { action : 'ajax_get_geo' }, }); }
and when you want to request data then use
jQuery.when()
jQuery.when( getGeo ).done( function( obj ) { // do some magic with response in here console.log( obj ); } );
but if you want to create AJAX function in main.js or else just one place and want to reuse in every page at you want, try to announce AJAX function var to global like this
if ( window.getGeo == undefined ) { window.getGeo = getGeo; }
and now you can reuse its everywhere with jQuery.when()
jQuery.when( window.getGeo ).done( function( obj ) { // do some magic with response in here console.log( obj ); } );
and last about .done VS success
In my opinion if the code is complicated so use .done but use success callback for a few lines of callbackvar aLotOfData = jQuery.when( window.getGeo ) aLotOfData.done(function(obj) { console.log( obj ); });
I hope this helps
- This reply was modified 5 years, 4 months ago by Boat.
- This reply was modified 5 years, 4 months ago by James Huff.
Forum: Developing with WordPress
In reply to: Alter taxonomy selector with JqueryCould you try this?
(function($) { $(document).on('mouseenter', '.editor-post-taxonomies__hierarchical-terms-choice', function() { alert("IT'S WORK!"); }) })(jQuery);
Forum: Plugins
In reply to: [HTML Editor Syntax Highlighter] Doesn’t work after updateI have the same problem (but I found some error when I switch between Visual and Text tab). I think 2.0 version may conflict with several plugins. In my case is ACF Code Field and ACF Pro. when I disabled those plugins, HTML Editor Syntax Highlighter will work fine.
Now I suggest to downgrade version is better idea until bug fix version come out.
Forum: Plugins
In reply to: [WP Editor] Custom line-heightNo, I don’t mean about font-size but line-height, The space between text line. space between line is too close and can’t adjust. (so I temporarily fix it by edit in core CSS of plugin)
I hope this plugin will add line-height options.
Thanks.
I have found how to translate already. It was in Strings translation tab.
Thanks for wonderful plugin.
Forum: Plugins
In reply to: [YUZO] Custom Post Type Support?It’s work already. Thank you very much. ??
Forum: Plugins
In reply to: [YUZO] Custom Post Type Support?I try it but still not show related post in my custom post type
in normal post: Link – Work Perfectly!
in custom post: Link – Not Work..—
and I found another problem about image thumbnail size. my thumbnail size is 150×150 but I notice that inline css of your plugin force thumbnail size to 160×150. It’s make ratio weird. you can check it on my site.
Forum: Plugins
In reply to: [YUZO] Custom Post Type Support?WOW! That’s great!
Thank you very much. ??Forum: Plugins
In reply to: [YUZO] Custom Post Type Support?I mean that how can I use your plugin on Custom post type? I tried it but it only work on Default post type (Post, Page, and Attachment) of wordpress.
Forum: Plugins
In reply to: [Arconix Portfolio] I can't open comments in single-portfolioOH, Thank you very much!
It’s work now. I find solution for a week with this ploblem. (I think I do something mistake.) and again Thank you for very good plugin and very good supports. ??
Forum: Plugins
In reply to: [Arconix Portfolio] I can't open comments in single-portfolioAll right, I knew that but I don’t want to force every links to single-page. So I didn’t add [..link=”page”] into shortcode.
Oh, I have an idea. I build new wordpress blog for test and setting some required likes my blog. If you have a free time. You could check my code ,please.
New WordPress
Log in
user: admin
pass: passForum: Plugins
In reply to: [Arconix Portfolio] I can't open comments in single-portfolioI use Twentytwelve for Parent my Child Theme and add this to pages to show Portfolio thumbnails
[portfolio thumb="custom-size" title="below"]
I setting link to page at Portfolio Setting but can’t find any option for enable Comments like default WordPress’s posts or pages. Also checked in Screen options in portfolio item or quick setting in portfolio lists ,have no any options about comments.
Forum: Plugins
In reply to: [Arconix Portfolio] I can't open comments in single-portfolioYes, I copy and paste that code into child theme’s function.php. but It doesn’t work. I have two blogs that use this plugin and all two blogs cannot open comment support. I don’t know why.