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


#1

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.


#2

Hello kautsardbs,

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


#3

InspireBook theme directly


#4

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


#5

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


#6

thank you for the explanation

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

please help its completion.


Insiprebook Menu Customization
#7

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


#8

thank you very much


#9

You are welcome :smile:


#10