495 views 26 March 2020 6
Changing the "Related Products" text in WooCommerce 4 requires a small piece of code. Add this into your theme functions.php file, changing "Your Custom Text Here" to whatever you want: add_filter( 'gettext', 'wtd_related_products_text', 20, 3 ); function wtd_related_products_text( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Related products' : $translated_text = __( 'Your Custom Text Here', 'woocommerce' ); break; } return
491 views 25 March 2020 1
To override a module template from the PowerPack for Beaver Builder plugin within your theme or child theme: Create a directory within you theme called bbpowerpack Create a directory beneath the new bbpowerpack directory called modules Copy the files to modify from the modules directory within the Beaver Builder Powerpack plugin directory, preserving the directory structure Example below shows the Post Content Grid file post-content.php being overriden in a child theme:
484 views 25 March 2020 1
You may need to add support for a WordPress Custom Post Type after the post type has been registered, eg where a plugin or theme introduces new post types without all the required support. You can do this using the function add_post_type_support(). For example, to add author support to the post type example_cpt, add the following code in your theme functions.php: add_post_type_support( 'example_cpt', 'author'
479 views 24 March 2020 1
If your WordPress website is not loading or is experience other errors, it may be useful to turn on debug mode. This will output messages to the screen that may be useful in identifying a website issue. Turn on WordPress Debug mode Open the file wp-config.php in your website root directory for editing Locate the line define('WP_DEBUG', false); and replace with define('WP_DEBUG', true); Save the file. Errors will now visible on your WordPress