theblueli
Forum Replies Created
-
Forum: Plugins
In reply to: [Show modified Date in admin lists] Sort by?Hi, I see.
However, it seems to be only working on the default post post type
Would you care to make it also available for the custom post type?thanks
Forum: Developing with WordPress
In reply to: replace the “medium” image size for media libraryHi, this is because I changed the medium size to 960px width, did not aware the media library is pulling the ‘medium’ size which I thought it is pulling ‘thumbnail’ sizes. Therefore I was looking for a way to improve the speed.
Eventually, I hired someone to correct it for those who may want to know the solution.Thanks bcworkz for the hints as well
add_filter( 'wp_prepare_attachment_for_js', 'custom_wp_prepare_attachment_for_js', 10, 3 ); function custom_wp_prepare_attachment_for_js( $response, $attachment, $meta ) { $use_size = 'thumbnail'; // Edit this to your needs. if( 'image' === $response['type'] ) { if( isset( $response['sizes'][$use_size] ) ) { //echo $response['sizes']; $response['sizes']['medium']['url'] = $response['sizes']['thumbnail']['url']; } else { $response['sizes']['medium'] = wp_get_attachment_image_src( $response['id'], $use_size ); } } return $response; };Hooks: admin_init
Priority: 999- This reply was modified 4 years, 5 months ago by theblueli.
Hi, it works! Thanks
- This reply was modified 4 years, 6 months ago by theblueli.
Forum: Plugins
In reply to: [WooCommerce] Unique URL slug for variable productWow, I have been looking for this plugin Products By Attributes & Variations for WooCommerce for a while now. Very Glad to know there is one!!!
A silly question, it says “Show variations on shop pages” It is going to be only working on loop in the Shop page? or it is including for all the taxonomy archive pages, I mean the product_cat archive page, as well as some custom taxonomy archive for products.
Thanks
Forum: Plugins
In reply to: [Ultimate Reviews] Can I use it for a CPT?I found that in order to use this thing on CPT, you may need to add a snippet to enable comment for your CPT
example
<?php /** * Add commenting support for CPT. */ add_post_type_support( 'cpt_name', 'comments' ); add_filter( 'comments_open', 'my_comments_open', 10, 2 ); function my_comments_open( $open, $post_id ) { $post = get_post( $post_id ); return 'cpt_name' === $post->post_type; }Forum: Plugins
In reply to: [Ultimate Reviews] Can I use it for a CPT?Oh, Thanks Paul
Sorry about that, total missed the reply from jssuppot @@Hi 1 month later, any chance you have refine the css structure. This is exhausted You put everything with !important. I can remove a simple thing like border. Change border color etc… I cannot use this plugin for commercial project because of the lacking customization ability Even I have purchased the Pro version. Not able to make custom style make this plugin very poor….
And I found that the individual theme color setting is useless.
The theme color are all overridden by the WC quick setup one…Same here. I’d love to see if the issue is fixed
Hello, here is one of a post
https://bit.ly/3sbM4V1There is no link to option for image block.
https://prnt.sc/101xgpcBut Gallery Block it does. Not sure if I need to use Gallery Block on a single image.
Thanks
Alright, Just did it.
Thanksyes, please add option to disable it
it is kind of annoying… it make all my changes back to unchanged…So Cool! Thanks for the reminder as well!
Understood! Thanks for the reply~
Great!