Mainmenu marks submenu choice (5 posts)

  1. phlsn
    Posted 2 years ago #


    i just installed the hatch theme and edited it a little bit. Now, nearly finished my work, i got two template based questions.
    We are talking about this site: http://www.menhire.net/wp

    1. I want the main menu to be marked active (color #990) when i am on a submenu page. Is this possible?

    2. I want to put the searchform between the mainmenu and the content, how can i do that?

    Thank you so much for you support.


  2. CodeBotics
    Posted 2 years ago #


    1) Assuming you have created a child theme, you need to add the following to your child themes style.css:
    .current-menu-parent a { color: #990000; }

    2) I'm not 100% sure exactly where you want it, could you post a screenshot showing me? Also, it looks quite good with the search where it is at the moment!


    Edit: your theme's active colour is #990000, not #990

  3. phlsn
    Posted 2 years ago #

    Thank you very much for your fast reply. This worked for me!

    I would like to place the search form here:

  4. CodeBotics
    Posted 2 years ago #

    I haven't properly tested this, but I think you might be able to do this with just CSS. It would probably be better to do it by moving the search box HTML, but it's easier to just add some CSS!

    Try adding this to your style.css:

    #header > div > form#searchform {
     position: absolute;
     right: 0;
     top: 100px;
  5. phlsn
    Posted 2 years ago #

    Thanks for your reply, I allready tried to position in absolute values, but the hatch theme breaks in Safari.

    Anyway, the customer is ok with the form on top.

    While browsertesting i faced another problem with mouseover. On subpages, when you create Wysiwig Content, the link hover wont work in Safari. Can you help me with that?

    Thanks a lot for your great support!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic