• Resolved collinsavenue

    (@collinsavenue)


    In /redux-framework/redux-templates/classes/class-templates.php there is a function that adds 3 redux template types. Since I am already using Elementor, I have no need for these types and they confuse my clients. Is there a filter function to unset them?

    /**
    	 * Hook to add the templates to the dropdown
    	 *
    	 * @param array $post_templates Default post templates array.
    	 *
    	 * @return array
    	 * @since 4.0.0
    	 */
    	public function add_templates( $post_templates ) {
    		$post_templates['redux-templates_contained']  = __( 'Redux Contained', 'redux-framework' );
    		$post_templates['redux-templates_full_width'] = __( 'Redux Full Width', 'redux-framework' );
    		$post_templates['redux-templates_canvas']     = __( 'Redux Canvas', 'redux-framework' );
    
    		return $post_templates;
    	}
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter collinsavenue

    (@collinsavenue)

    Been trying for hours but no luck, they are still there.

    IMG-20200916-153715

    Plugin Contributor Dōvy Paukstys

    (@dovyp)

    Good news, this will now no longer show up unless you are in Gutenberg. Users will still be able to use the templates on their frontend, but it won’t confuse users now. ??

    This is new to Redux 4.1.21. Just thought you’d like to know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to unset class-templates.php?’ is closed to new replies.