How to remove Search form Header menu (main)

Posted in: Newspaper
Post count: 30

Hi:

I need more space in the header menu (main) so I want to remove the search and move it to the top menu. Can this be done? How?

Thanks

Post count: 6600
Post count: 30

Lucian:

I don’t know what I did wrong. Please check these:

1. I removed the code from
https://www.evernote.com/shard/s250/sh/1e344332-217f-4bad-8654-521d220cbb5c/c4fc56dee9387eac0a7cacaf53a23047

2. I pasted the new code and changed the class from “span9″ to “span8″
https://www.evernote.com/shard/s250/sh/cf1d922b-94f1-49aa-986d-3002a52fcb58/5a9086d96f63d8473f46dd618ab1cda9

3. I Added the css
https://www.evernote.com/shard/s250/sh/a6430983-feef-4141-8dd4-c2b3e49409ab/56e5f0eb455d5e61cde62736d62830cb

4. And now you can see that the search box is not in the top menu or any other place.

https://www.evernote.com/shard/s250/sh/39731376-6a1f-4287-8eeb-429ce4583d4a/62f7eef8c907c8284c96d704bbb3b2ad

You can also see that the last category is being push below.

Any help will be greatly appreciated.

Thanks.

Post count: 6600

Hi,

Please also make sure you change this span class into span12, like this: http://screencast.com/t/0Xm9bF1Bg6
After this please remove the previous css and user this instead: http://screencast.com/t/LEnvPM1EiFa
Please let me know if you manage to do it and also provide your site’s url so I can inspect this if you don’t.

Thanks

Post count: 30

Lucian:

The first step is clear. Changing the span class into span12 has corrected the problem with the last menu being pushed dowm.

The second step is not clear at all. I’ m not familiar with WP so I don’t know where to find the code to be replaced. It would be also great if you could include a copy of the final code so i have not to write it by hand (this is not an issue of being lazy but of not making mistakes).

I have not provided you my site url because is not live yet.

Thanks in advance.

Post count: 6600

Hi,

First please make a backup of you current theme installation or a copy of the files you change.
Replace the content of menu-header.php file with this: http://pastebin.com/Ca9nXZ6M
Replace the content of menu-top.php file with this: http://pastebin.com/mFCypxcC
After this please add this custom css in theme panel > custom css field:

#td-top-search .td-sp, .sf-sub-indicator {
background-image: url('http://0div.com:70/wp_009/wp-content/themes/009/images/header/elements-menu.png') !important;
}

.td-sp-ico-search{
width: 25px;
height: 25px;
background-position: -20px -544px;
}

#td-top-search {
position: relative !important;
top: 0px !important;
}

#search-button .td-sp-ico-search {
position: relative;
top: 0px !important;
}

.header-search-wrap #search-button {
height: 20px !important;
}

Result: http://screencast.com/t/YVtS1DXV0N2
Replace this URL with your local one: url('http://0div.com:70/wp_009/wp-content/themes/009/images/header/elements-menu.png')

Thanks

Post count: 55

works fine for me —-> http://www.football-eu.com

Post count: 6600

Thanks @Ljubisa B.!

Post count: 30

It worked for me too! thanks Lucian.

I still have a question.

As soon as I replaced the content of menu-header.php file with this: http://pastebin.com/Ca9nXZ6M I lost the icons of the little triangles pointing down that indicates that the category has sub categories (it is a mega menu). How can I get them back?

Thanks

Post count: 30

Sorry to bother you again:-)

Please have a look at the search now on the top-menu.
https://www.evernote.com/shard/s250/sh/c55d1869-26b9-4b05-9f2a-bc09111b243e/e6732ebdb6000806b51a15a8f301afbd

As you can see the results of the search are very confuses.
1.No need to include image as they are so small that they don’t have positive impact.
2. The title of the articles found should be aligned to the left to increase readability and last but not least
3. The lens icon should be position to the right. That is to say above the last column.

In the image provided you can also see that the little triangles at the right of each category are not anymore as i told you in my last email

Thanks

Is this possible? Does it make sense for you?

Post count: 6600

Hi,

To add back the menu arrow pointer and left align the search results images please use this css: http://screencast.com/t/RyPXjgPPOsYL
Please remove the one I previous gave you and add only the one bellow:

#td-top-search .td-sp {
background-image: url('http://0div.com:70/wp_009/wp-content/themes/009/images/header/elements-menu.png') !important;
}

.td-sp-ico-search{
width: 25px;
height: 25px;
background-position: -20px -544px;
}

#td-top-search {
position: relative !important;
top: 0px !important;
}

#search-button .td-sp-ico-search {
position: relative;
top: 0px !important;
}

.header-search-wrap #search-button {
height: 20px !important;
}

.td-header-menu-wrap .td-aj-search-results .td_mod_wrap {
text-align: left !important;
}

Regarding the other matters, they are possible to achieve via custom css, unfortunately that is how the search module used there was tooth and designed and if you don’t like you would need to hire a freelancer to do that for you if you don’t know how to do it as we cannot offer custom work at this time because we are working hard on development, updates, fixes and support. You can get a freelancer from sites like: http://studio.envato.com/
For the search icon(lens) you can do this to move it at the right of the menu-top section: http://screencast.com/t/yJwsFCJFgnb
Result: http://screencast.com/t/wngyZChm

Hope this helps!
Thanks!

Post count: 30

Thank you very much Lucian. You rock. Now it is OK.
best,

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.