Home Forums WoodMart support forum Widgets area got error after adding Woodmart theme

Widgets area got error after adding Woodmart theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #400363

    wlpdigital
    Participant

    Good day Team!

    I’ve some issues:

    1) Widgets area got error after adding Woodmart theme. Please check the attached file
    2) Child theme not working when I updated for testimonial page. But 404 page is working in child theme. Please check the attached file

    Thanks with Regards,
    Theigi.

    Attachments:
    You must be logged in to view attached files.
    #400381

    Luke Nielsen
    Keymaster

    Hello,

    Thank you for reaching out to us!

    1. This is a WordPress bug, so we would recommend installing the free Classic widgets plugin to solve it. We hope they would fix it soon as possible.

    https://wordpress.org/plugins/classic-widgets/

    2. Please enter the below code to the functions.php file in the child theme, the updated file should start to work after it.

    if ( ! function_exists( 'woodmart_get_element_template' ) ) {
    	/**
    	 * Loads a template part into a template.
    	 *
    	 * @since 6.1.0
    	 *
    	 * @param string $element_name  Template name.
    	 * @param array  $args          Arguments.
    	 * @param string $template_name Module name.
    	 */
    	function woodmart_get_element_template( $element_name, $args, $template_name ) {
    		if ( ! empty( $args ) && is_array( $args ) ) {
    			extract( $args ); // phpcs:ignore
    		}
    
    		include get_theme_file_path( '/inc/template-tags/elements/' . $element_name . '/' . $template_name );
    	}
    }

    Please feel welcome to reach out to me with any questions you may have and I would be more than happy to help.

    Kind Regards

    #400562

    wlpdigital
    Participant

    Good Morning Team!

    Thanks for your information.
    Both issues are fixed.

    Best Regards,
    Theigi.

    #400583

    Luke Nielsen
    Keymaster

    Hello,

    We will appreciate it if you can refer your friends or family members to become a part of our Xtemos family.

    Wish you all the best.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Widgets area got error after adding Woodmart theme’ is closed to new replies.