• Hi,

    I am not entirely experience with wordpress yet, but I wish to use this theme with the Yada Wiki plugin.

    On the normal page editor, I have the option to select the Full, No Sidebar Page Template. Is there somewhere in the theme files that I can edit so that all wiki related pages are automatically Full, No Sidebar Page Template?

Viewing 1 replies (of 1 total)
  • Theme Author ronangelo

    (@ronangelo)

    Use a child-theme. Get here if you don’t have one. Make sure the child-theme is the active theme.

    – Go to Appearance -> Theme File Editor
    – Select Theme Functions (functions.php)
    – Add this:

    function yada_wiki_full_template( $template ) {
    
    	if ( get_post_type() == 'yada_wiki' ) {
    
    		return get_template_directory() . '/page-full.php';
    	}
    	else {
    
    		return $template;
    	}
    }
    add_action( 'template_include', 'yada_wiki_full_template' );
Viewing 1 replies (of 1 total)
  • The topic ‘Full, No Sidebar Page Template on Yada Wiki page’ is closed to new replies.