Forum Replies Created

Viewing 15 replies - 61 through 75 (of 703 total)
  • Phil

    (@owendevelopment)

    Can you post a link so we can see the problem, it’s tough to diagnose without seeing the problem. 🙂

    Phil

    (@owendevelopment)

    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.

    Thread Starter Phil

    (@owendevelopment)

    Done, thanks

    Phil

    (@owendevelopment)

    Personally, 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.

    Thread Starter Phil

    (@owendevelopment)

    Hi 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?

    Thread Starter Phil

    (@owendevelopment)

    Hi, 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.

    Thread Starter Phil

    (@owendevelopment)

    It’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.

    Thread Starter Phil

    (@owendevelopment)

    1. 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.

    Phil

    (@owendevelopment)

    Do 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.

    Phil

    (@owendevelopment)

    Just put any additional functions in the child functions.php file, keep the parent one as it is.

    Thread Starter Phil

    (@owendevelopment)

    Anyone?

    Thread Starter Phil

    (@owendevelopment)

    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!

    Thread Starter Phil

    (@owendevelopment)

    I have it working now.

    Thread Starter Phil

    (@owendevelopment)

    I’m confused, you mean like this?

    <?php apply_filters('the_content',get_the_content()) ?>`

    Thread Starter Phil

    (@owendevelopment)

    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.

Viewing 15 replies - 61 through 75 (of 703 total)