How hide rp panel menu in specific page...? (inspirebook theme)

I create a custom page template and want to hide the rt panel slide menu (inspirebook theme) in my custom page template.

please let me know how.

Hello kautsardbs,

Are you doing changes in child theme or InspireBook theme directly?

InspireBook theme directly

please cek this…
http://bidubid.com/welcome-to-bidubid/

Hello Kautsardbs,

I recommend you to use child theme instead of doing changes in InspireBook theme directly.

Here are a few reasons:

  1. If you modify an existing theme and it is updated, your changes will be lost. With a child theme, you can update the parent theme (which might be important for security or functionality) and still keep your changes.
  2. It can speed up development time.

Check for more details. http://codex.wordpress.org/Child_Themes

BTW you can add following code in functions.php to remove slide panel for particular page template.

function rtp_remove_parent_hooks() {
    if( is_page_template('template-name.php') ) {
        remove_action( 'rtp_hook_begin_body', 'inspirebook_theme_primary_nav_menu' );
    }
}

add_action( 'template_redirect', 'rtp_remove_parent_hooks', 99 );

Thanks

1 Like

thank you for the explanation

This now happens like http://bidubid.com/welcome-to-bidubid/

please help its completion.

Hello Kautsardbs,

Add following lines of code in style.css

.page-template-template-welcome-php .rtp-main-wrapper { margin-left: 0; }
.page-template-template-welcome-php .rtp-header { margin-right: 0; }

Thanks

thank you very much

You are welcome :smile: