ThemeShaper Forums » Thematic

[closed]

How to remove menu only on front page

(5 posts)
  • Started 3 years ago by muayguy
  • Latest reply from muayguy
  • This topic is resolved
  1. I've been trying to get it to work all morning but I really don't know how to achieve this. The code I came up after reading the forum is this one:

    function remove_thematic_actions() {
        remove_action('thematic_header','thematic_access',9);
    }
    
    if(is_front_page()) {  //also tried is_page_template('template-home-page.php'); since I'm working on my custom home
    	add_action('init','remove_thematic_actions');
    }

    This,... as logic as it may look ;D doesn't work. Anyone knows how to get this working?

    Thanks!

    Posted 3 years ago #
  2. Solved it so nevermind... but if it's of anyone's interest, this is how I handled it ;D

    1_ Overwrite the default body_class to 'true'
    define('THEMATIC_COMPATIBLE_BODY_CLASS', true);

    2_ CSS, sweet CSS:
    body.home #menu-main-menu {display:none}

    Posted 3 years ago #
  3. Question? If you remove the Menu from your Home/Front Page, how will People be able to see the rest of your site?

    Posted 3 years ago #
  4. maybe your homepage is showcase of every section? there could be so many ways

    Posted 3 years ago #
  5. d_rec, I added a custom menu in the sidebar. However in this particular case I am starting to believe that my client doesn't really know what's best for him (happening more and more often lately). He wanted me to have a sidebar menu on the homepage but not the top menu. And then they wanted me to remove the sidebar menu from the internal pages and get the top menu to appear. I got it working, however it looks confusing and right now I'm trying to convince him that this is a terrible idea.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.