i need have button text (f.e. "add basket") fluid in width. if button width little show "add basket" must cut "basket" only. did achieve of splitting <span class="text">add basket</span> into 2 parts , reverse order them in dom <span class="text">basket</span><span class="text text-prefix">add to </span> and show them in correct order adding .text{ float: right; } however, text inside button must centered, not work far. here fiddle, i'd appreciate ideas: https://jsfiddle.net/5cavrrhc/ under circumstances, want avoid using js this. solution ok, here go: https://jsfiddle.net/6etabchg/4/ ok, co-worker , found solution works nicely. make button position: relative make wrapper display: flex; flex-wrap: wrap-reverse; justify-content: center; reverse order make both inner spans display: inline-block;flex-shrink: 0; make 1 span should remain or...
i went searching solution hide specific categories id on wordpress dashboard individual custom post types. stumbled upon following code , able half way there hiding categories logged in user. add_action( 'admin_init', 'wpse_55202_do_terms_exclusion' ); function wpse_55202_do_terms_exclusion() { if( current_user_can('administrator') ) add_filter( 'list_terms_exclusions', 'wpse_55202_list_terms_exclusions', 10, 2 ); } function wpse_55202_list_terms_exclusions($exclusions,$args) { return $exclusions . " , ( t.term_id <> 43 ) , ( t.term_id <> 42 )"; } now want alter code hide id specified categories taking custom post type account. know, can pass argument current_user_can i'm not sure how phrase it. unfortunately custom taxonomy have implemented in other aspects of site not going work in instance. i thought had swap if statement conditional get_post_type did not work. ideas? 'andytoday...
Comments
Post a Comment