• Resolved oceanosaurus

    (@oceanosaurus)


    Hello,

    I’m trying to configure the Book Page Settings to use the full page template, as to remove the sidebar when you examine a book entry to no avail.

    From the Book Page Settings, I can choose to use the Full Page template but this only hides the sidebar, while still keeping the space for it, instead of using the full width of the page.

    As a note, the full page template is working correctly when used in regular pages.

    Any help will be appreciated!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mooberrydreams

    (@mooberrydreams)

    Just pushed out an update to fix this.

    Thread Starter oceanosaurus

    (@oceanosaurus)

    Hello,

    Many thanks for the reply. We’ve updated the plugin but we still have the same problem. Is there any other step we should perform?

    Thank you

    Plugin Author mooberrydreams

    (@mooberrydreams)

    Hello. It looks to be specific to your theme. Your theme seems to assume only pages (not posts) will be full width. The following custom code will solve the issue. This code should be put into the functions.php file of a child theme or in a custom plugin.

    If you ever decide you don’t want book pages to be full width or if you change your theme, you will need to remember to delete this code.

    
    add_filter('body_class', 'mbm_add_full_template_class');
    function mbm_add_full_template_class( $classes ) {
    	if (  !is_search() && is_main_query() && !is_admin() && get_post_type() == 'mbdb_book' ) {
    		$classes[] = 'page-template-full-width';
    	}
    	return $classes;
    }

    Additionally, while testing with your theme, I noticed this on the WordPress page, just FYI:

    This theme?hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

    Thread Starter oceanosaurus

    (@oceanosaurus)

    Hello again,

    This has been extremely helpful as the code completely solved the problem. Many thanks for taking the time to look into this very specific problem.

    Best Regards,

    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Full-width page template nor working on Book Page’ is closed to new replies.