Category : Javascript

I really like the DIVI Accordion, but by default, the first accordion is open when the page loads. A website looks cleaner if all accordions are closed when the page loads. In Elegant Themes FAQs and Troubleshooting, I found an article Make DIVI Accordions Closed by Default, which you can refer to for complete instructions. ..

Read more

Here’s a javascript you can use to automatically complete WooCommerc orders from any status. This example uses the ‘processing’ status. add_action(‘woocommerce_order_status_changed’, ‘ts_auto_complete_virtual’); function ts_auto_complete_virtual($order_id) { if ( ! $order_id ) { return; } global $product; $order = wc_get_order( $order_id ); if ($order->data[‘status’] == ‘processing’) { $virtual_order = null; if ( count( $order->get_items() ) > 0 ..

Read more

Google recommends using JSON-LD as the data format for your structured data.  The schema.org markup should be embedded on your official website.  The below website will show you how and even show you some examples. You can find more information on The Google Search Central documentation, Local business (LocalBusiness) structured data. &nb..

Read more