• Resolved cris83

    (@cris83)


    Hi,
    i use Customizr pro and i want to create a page without the main menu on top. I want create a page with a login area and i don’t want to see the menù on top. Is it possible? Anyone can help me? ?? Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,
    The pro support is handled at https://presscustomizr.com/support/.

    In any case, the way forward is this:

    Create a custom-page template (use the custom-page.php file that comes with the theme). Make any modifications that you may want to in this template.

    Add a new page from WordPress Admin dashboard. In the Page Attributes metabox on the right side, choose the template that you created.

    The rest is as always.

    Thread Starter cris83

    (@cris83)

    Thank you very much!:-) I’m very glad about your answer! I will do it!

    Thread Starter cris83

    (@cris83)

    Only one question more: you can give me the code to have a custom-page.pho file without header (menu’+ logo)? I only need this custom on my page!

    Hi,
    1. Copy custom-page.php nomenu-page.php
    2. Open nomenu-page.php and change the template name to

    Template Name: NoMenu Page Example

    3. Choose NoMenu Page Example under Page Attributes metabox.

    4. Add this to your child theme’s functions.php. Adjust based on your needs. Comment out any of the FOUR lines that you don’t want to remove.

    add_filter('__before_body','remove_header');
    function remove_header($content){
       if (strcmp(basename(get_page_template()),'nomenu-page.php') === 0) {
    
             // Choose one or more of the following FOUR lines based on need
    
             remove_action ( '__header', array( TC_header_main::$instance , 'tc_prepare_logo_title_display' ) , 10 ); // REMOVE TITLE AND LOGO
             remove_action ( '__header', array( TC_header_main::$instance , 'tc_tagline_display' ) , 20, 1 );// REMOVE TAGLINE
             remove_action ( '__header', array( TC_header_main::$instance , 'tc_navbar_display' ) , 30 ); //REMOVE NAVBAR/MENU
    	 add_filter('tc_header_classes','__return_empty_array');
    
      }
    }
    Thread Starter cris83

    (@cris83)

    Perfect! All ok!:-)
    Thank you very much Menaka.

    Thread Starter cris83

    (@cris83)

    Sorry Menaka!:) I have another easy question for you!
    All ok with the page without header (logo and menù). I want now to remove the “white space” on top leaved by the header position! How i can do? I try to see in the “nomenu-page.php” but i don’t find this option! Maybe i have to modify the style.css ?
    Thanks in advance for your help!

    Hi,

    Add this to the child theme’s style.php

    add_filter('tc_default_sticky_header_height' ,'my_header_height',5 );
    
    function my_header_height($content) {
      if (strcmp(basename(get_page_template()),'nomenu-page.php') === 0) {
         return 10; //Adjust
      }
      return $content;
    }
    Thread Starter cris83

    (@cris83)

    Hi Menaka,
    as usual, thanks you very much! It works perfectly!:-)
    I add the code in the child theme’s function.php and all is ok!
    Thanks for all!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page without menu in Customizr’ is closed to new replies.