Phil
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Google Search WidgetCan you post a link so we can see the problem, it’s tough to diagnose without seeing the problem. 🙂
Forum: Fixing WordPress
In reply to: Site suddenly not working.You can also check your PHP error logs on the server to see where the problem lies. Updating WordPress will still throw errors if the theme itself is the actual conflict. I’ve seen this before when WordPress auto-updates on a site running an old outdated theme. Try reuploading WP files, if still the same error, check the PHP files to try and hunt down where the problem is originating.
Forum: Fixing WordPress
In reply to: Woocommerce Product Add-ons – Strip labelDone, thanks
Forum: Fixing WordPress
In reply to: Fatal Error MessagePersonally, I would redownload WordPress from this site, then use FTP to upload everything except the wp-content folder. Unfortunately FTP or file manager would be the only way to sort – I doubt it could be done without this.
Hopefully that would add any missing files and get you back up and running.
Forum: Fixing WordPress
In reply to: Woocommerce Product Add-ons – Strip labelHi James,
Actually I think the Product Add-ons are merely just adding custom fields and are created as product meta so more part of WooCommerce core.
I traced the function in Woo, in woocommerce/includes/class-wc-order-item-meta.php. And this is the bit I need to edit:
/** * Display meta in a formatted list. * * @param bool $flat (default: false) * @param bool $return (default: false) * @param string $hideprefix (default: _) * @param string $delimiter Delimiter used to separate items when $flat is true * @return string|void */ public function display( $flat = false, $return = false, $hideprefix = '_', $delimiter = ", \n" ) { $output = ''; $formatted_meta = $this->get_formatted( $hideprefix ); if ( ! empty( $formatted_meta ) ) { $meta_list = array(); foreach ( $formatted_meta as $meta ) { if ( $flat ) { $meta_list[] = wp_kses_post( $meta['label'] . ': ' . $meta['value'] ); } else { $meta_list[] = ' <dt class="variation-' . sanitize_html_class( sanitize_text_field( $meta['key'] ) ) . '">' . wp_kses_post( $meta['label'] ) . ':</dt> <dd class="variation-' . sanitize_html_class( sanitize_text_field( $meta['key'] ) ) . '">' . wp_kses_post( wpautop( make_clickable( $meta['value'] ) ) ) . '</dd> '; } } if ( ! empty( $meta_list ) ) { if ( $flat ) { $output .= implode( $delimiter, $meta_list ); } else { $output .= '<dl class="variation">' . implode( '', $meta_list ) . '</dl>'; } } } $output = apply_filters( 'woocommerce_order_items_meta_display', $output, $this ); if ( $return ) { return $output; } else { echo $output; } }Is there a way to override this function?
Forum: Plugins
In reply to: [Testimonial Slider] Auto height for SliderHi, thanks for your response but it doesn’t work.
The container div also need auto height also:
#testimonial_slider_recent, .testimonial_slider__default .testimonial_slideri { height: auto !important; margin:0 !important; }But even with adding the !important declaration, it still doesn’t resize as the inline height is still overriding. If I remove this by inspecting element, I can see the dynamic height working, but the CSS alone doesn’t seem to solve the issue.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Bug: Extra non-functioning table head rowIt’s behind a live member area so not viewable without credentials, HOWEVER, I found that the 2nd thead section was the one that displays during the ‘print’ view.
It may be due to custom CSS I added (although I couldn’t find it), but I’ve now fixed my instance by adding some CSS to hide it normally and display it when in Print view:
#mytable .dataTables_scrollBody .dataTables_sizing div { display: none; } .DTTT_Print #mytable .dataTables_scrollBody .dataTables_sizing div { display: inline-block; }This worked for me. It may have been my responsive table code which display: block ‘d something but it’s all good now.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Feature Requests1. OK
2. Yeah, I don’t think horizontal scroll is nice though, instead, I added responsive CSS which blocks each table cell and groups blocks to allow each row to become it’s own block. Much nicer and user-friendly than scrolling, personally speaking.
Forum: Fixing WordPress
In reply to: My phpAdmin error codeDo you have a backup of the original functions file? I would send that back up via FTP to get your site up and running again.
Forum: Fixing WordPress
In reply to: Functions.php is giving griefJust put any additional functions in the child functions.php file, keep the parent one as it is.
Forum: Fixing WordPress
In reply to: Fetch custom field keys (names) using MySQLAnyone?
Hi,
I’m using version 4.1.5.
So I take it there’s nothing we can do on our end – ie a filter?
Thanks for your help and great plugin!
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Shortcode not working in Custom Post TypeI have it working now.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Shortcode not working in Custom Post TypeI’m confused, you mean like this?
<?php apply_filters('the_content',get_the_content()) ?>`Forum: Plugins
In reply to: [Google Forms] Targeting a specific sheet in the Google Doc (gid)Yeah, I thought that.
Putting the url aside, is there anything in the new wpgform shortcode to account for the gid?
Or can we still use the gform shortcode as previous? I know it’s deprecated but would rather use something thats not going to be supported in the future updates.