Code Snippets

translate content with wpml

How to translate WP bakery single image links with WPML

1. Go to WPML > Settings > Custom XML Configuration 2. Add the code below and Save: <wpml-config><shortcodes><shortcode><tag>vc_single_image</tag><attributes><attribute>link</attribute></attributes></shortcode></shortcodes></wpml-config> 3. Open the page with the image link to translate in the original language and make a small edit to the text (it can be anything at all, the page just needs to be updated with a …

How to translate WP bakery single image links with WPML Read More »

code snippets wordpress

How to Automatically Complete Orders in WooCommerce

Manually add this code to your child theme’s functions.php file or you can also do it by using a code snippets plugin, but it’s best to avoid adding extra plugins if it’s not absolutely necessary. Make sure you don’t add any custom code directly to your parent theme’s functions.php file as this will be deleted when you update the …

How to Automatically Complete Orders in WooCommerce Read More »

override-theme-templates

How to Override Theme Templates in WordPress

WordPress themes are created with a set of templates. In order to function, a WordPress theme needs (at the very least) an index.php template and a functions.php template. Of course, real themes come equipped with much more than that. Most themes come with these templates (or more): 404.php archive.php comments.php footer.php functions.php header.php index.php page.php …

How to Override Theme Templates in WordPress Read More »