Getting rid of global header search field in Elemental theme

Permalink
Hey there! I started to get familiar with concrete 5 and i really do appreciate the easy work with the cms so far. I am currently using the elemental theme and i intend to customize it to my demands.

The problem is now that the header of the page seems to comprise 3 fields or boxes (Global Header Site Title, Global header navigation and global header search)

im ok with the title and the navigation bar - but i dont need the global header search field at all.
As those fields are not "editable" from within the browser i think the problem is within the Header.php in the theme´s folder. But i just cant find the correct code:..

I need a way to
1. get rid of the search box so i have more space for the navigation bar
2. edit the sizes of the 3 elements (i couldnt find a solution for that within c5)

i know this is quiet a noob question and i´ve already checked for similiar problems ! help would be very much appreciated :)


thx in advance

Patrick

1 Attachment

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi Lintsch,

The Global Header Search area is conditional. If it doesn't contain a block, it will only be viewable while in edit mode.

To create more space for the navigation bar, delete the Search block.
Lintsch replied on at Permalink Reply
Yea.. thats what i wanted to do and i need the help with ;)
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Lintsch

After deleting the Search block and publishing/saving, the area will not be displayed.

Are you still having an issue with it?
Lintsch replied on at Permalink Reply
i im not able to delete it there is simply no option to do that ! thats why im lookin to get rid of the code in the template - but i cant manage to find it
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Lintsch

If you setup a temporary admin account on your site and private message me the details, I can take a look at it.
Lintsch replied on at Permalink Reply
i dont know how to do that.

look all i need is the part of the code that is responsible for that search bar in the header.php of the standard elements theme...
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Lintsch

Any changes made to the theme files in the concrete directory will be overwritten. To prevent this, you can use the Cloneamental theme.
https://www.concrete5.org/marketplace/themes/cloneamental...

This code displays the search area:
https://github.com/concrete5/concrete5/blob/develop/web/concrete/the...

This code controls the width of the area that holds the navigation:
https://github.com/concrete5/concrete5/blob/develop/web/concrete/the...
Lintsch replied on at Permalink Reply
Thank you! i will try that tomorrow and report the outcomings :)
Lintsch replied on at Permalink Reply
Worked like a charm! Thank you a lot !!