Jason Wong
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Spectra One] Any Available Demo Content for Download?Noted with thanks.
Forum: Themes and Templates
In reply to: [Inunity] Any source demo for import?Awesome, Alex! It worked perfectly.
Many thanks.Forum: Themes and Templates
In reply to: [Inunity] Any source demo for import?Many thanks, Alex. The demo content matched beautifully after using WordPress Importer.
The funny thing is when I activated a child theme for your Inunity theme, the entire layout just broke. I just created it at a basic level, with just a functions.php, screenshot.png, and style.css. Please review this inunity-child theme.
Stay in touch. Cheers, mate!
Hi @m4hd1bd,
Apparently I found the Air-light theme (version 8.2.4) was the culprit.
To make matters worse, updating Air-light theme to its latest version 9.1.4 didn’t help.
Looks like this theme is buggy. Will check with the developer for further details.Sorry for any inconvenience caused.
Same here. Yes, it’s fixed after the update to 2.1.4.
Well done @asmipatel !!@asmipatel For your added info, this issue happens when the Classic Editor and your Icegram Popup plugins are both active.
This can be resolved by rewriting the unminified and minified CSS files, with the CSS styles I’ve mentioned above.
/icegram/lite/assets/css/admin.css
/icegram/lite/assets/css/admin.min.cssHope these details are sufficient to proceed with the fix and a new release soon.
Cheers!Found the culprit behind the Page/Post editor’s disappearance after Icegram Popup plugin has been activated. It appears the /icegram/lite/assets/css/admin.min.css had hidden #postdivrich admin-wide, and not specifically when an Icegram Popup campaign is being edited. Because of this, the default Page and Post editor too will be hidden from view.
To overcome this for the time being, I came out with this solution. Please follow it step-by-step.
- Create a new CSS file, which I call it “override-icegram-admin.css”
- Insert the following CSS codes into it …
body:not(.post-type-ig_campaign) #postdivrich { display: initial; } body:not(.post-type-ig_campaign) #postdivrich .wp-editor-container { margin-left: 0; }
- Save this CSS file, and upload it to your active theme’s directory
- Adding the following snippet into this active theme’s functions.php …
// Enqueue Admin Custom style (to be called after all styles) add_action( 'admin_print_styles', function() { wp_enqueue_style( 'override-icegram-admin', get_stylesheet_directory_uri(). '/override-icegram-admin.css' ); });
- Save the functions.php file, and that’s it!
Lets hope the developer(s) will look into this mistake and fix it immediately.
Forum: Plugins
In reply to: [Simple Download Monitor] Adding ALT attribute to thumbnail imageA lot of users just enter an image URL from their amazon S3 account for example.
You have a strong point there. Hence, the function would be as shown:
// Simple Download Monitor: Add ALT attribute to download fancy 2 thumbnail if ( is_plugin_active('simple-download-monitor/main.php') ) { add_filter('sdm_download_fancy_2_thumbnail', function($thumb_output, $args) { $download_id = $args['id']; $download_thumb_url = get_post_meta($download_id, 'sdm_upload_thumbnail', true); $download_thumb_alt = get_the_title($download_id); // get title instead of alt tag $thumb_output = '<img src="' . $download_thumb_url . '" alt="' . $download_thumb_alt . '" />'; return $thumb_output; }, 10, 2); }
Forum: Plugins
In reply to: [Simple Download Monitor] Adding ALT attribute to thumbnail image@mra13 Thanks for your reply.
Sounds like I may need to use the attachment_url_to_postid() function by converting the $download_thumb_url into its attachment ID. Hence the source codes may look so:
// Simple Download Monitor: Add ALT attribute to download fancy 2 thumbnail if ( is_plugin_active('simple-download-monitor/main.php') ) { add_filter('sdm_download_fancy_2_thumbnail', function($thumb_output, $args) { $download_id = $args['id']; $download_thumb_url = get_post_meta($download_id, 'sdm_upload_thumbnail', true); $attachment_id = attachment_url_to_postid($download_thumb_url); $download_thumb_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true); $thumb_output = '<img src="' . $download_thumb_url . '" alt="' . $download_thumb_alt . '" />'; return $thumb_output; }, 10, 2); }
Will find out if this works once I hand it over to my web administrator for him to insert this code into functions.php
Forum: Plugins
In reply to: [Organize Media Folder] Toolbar drop down not working@katsushi-kawamori It’s working again. Arigatou gozaimashita.
Forum: Plugins
In reply to: [Organize Media Folder] Toolbar drop down not workingI too am experiencing the same problem after the latest update.
The admin Upload folder: no longer displays any drop down list when I hover the mouse cursor over it.Forum: Plugins
In reply to: [WooCommerce] How to order wc_get_featured_product_ids() by name?This hasn’t been resolved. So, please keep it open until some kind soul has a workable answer to my question. Thank you.
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Custom field not searched@vinod-dalvi Thank you. I must’ve forgotten having an underscore prefix turns the ID into a private custom field. I took your advice and changed everything from _nr_artist to nr_artist, and Ivory Search picked it up immediately.
Then, in WP admin, Ivory Search > Search Forms >> Search > Products (WooCommerce), activated Search selected product custom fields values, and selected nr_artist. Click Save Form, and this custom field is searchable. Alright!
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Custom field not searched@vinod-dalvi Thanks for the quick response.
Perhaps that’s why Ivory Search works well with Advanced Custom Fields plugin. Since I’ve already used the woocommerce_product_options_general_product_data action hook, is there any way to make _nr_artist custom field public so that Ivory Search can search it?
The following is the snippet I’ve been using.
// Display Non-Representative (NR) Artist field add_action( 'woocommerce_product_options_general_product_data', function() { // Text Field woocommerce_wp_text_input( array( 'id' => '_nr_artist', 'label' => __( 'NR Artist', 'woocommerce' ), 'placeholder' => '', 'desc_tip' => 'true', 'description' => __( 'Enter the Non-Representative Artist\'s name, and it will override the Artist Category. Otherwise, just leave it blank.', 'woocommerce' ) ) ); }); // Save the value from the NR Artist field add_action( 'woocommerce_process_product_meta', function( $post_id ) { // Save Text Field $text_field = $_POST['_nr_artist']; if ( !empty( $text_field ) ) { update_post_meta( $post_id, '_nr_artist', esc_attr( $text_field ) ); } });
Please advise. Thank you.
Forum: Plugins
In reply to: [Yoast SEO] structured data items are invalid after latest updatesame here too. semrush is popping up “structured data items are invalid” errors for clients’ site. this is rather annoying. please fix this soon. thank you.