• Hi,

    On a site that I am working on, I cant get to remove the Header Widget Area: https://www.countrynorge.no

    Its a white field there which takes up space in the header.

    How to remove this?

    I have found out that I am supposed to put this into functions.php:

    unregister_sidebar( ‘header-right’ );

    But what is the correct name (‘header-right’) for the actual Header Widget-area?

Viewing 8 replies - 1 through 8 (of 8 total)
  • I think what you’re looking for is ‘colormag_header_sidebar’, all widget areas (aka ‘sidebars’ even though they can be place anywhere) are found under the Theme Folder > inc > widgets > widgets.php.

    However, another option you can make use of that is easier to un-do if you ever need to would be to simply hide that area using CSS and also use CSS to tweak the height of the header area, or hide the whole thing if you don’t need the space for your site title or logo (add your CSS in the Cusomizer in the Admin area under Appearance > Customize > Additional CSS).

    • This reply was modified 3 years, 3 months ago by TrishaM.
    Thread Starter llifeform

    (@llifeform)

    Thanks! Its too complicated this for me:

    Take a look at this screenshot: https://www.dropbox.com/s/l4m3hotqwk3zmam/Scott_Scovill_og_Hanne_S%C3%B8rvaag_med_ny_julel%C3%A5t_p%C3%A5_fredag_-_Country_Norge_no.png?dl=0

    Its from the site: https://www.countrynorge.no

    Excellent if you can just instruct me how to remove this field / white box, will be very happy :))

    Forum admins: Sorry if I break the forum rules now with putting in links, but I couldnt find a way to upload photos to my thread.

    Maybe you can consider to turn on this?

    • This reply was modified 3 years, 3 months ago by llifeform.
    Thread Starter llifeform

    (@llifeform)

    Trying this now in Functions.php:

    unregister_sidebar( ‘colormag_header_sidebar’ );

    Thread Starter llifeform

    (@llifeform)

    I think its the placement for the site title and logo, just going to move the header image down… will probably be fine.

    Thread Starter llifeform

    (@llifeform)

    Didnt work. Still looking to remove this field?

    ColorMag devs?

    Thread Starter llifeform

    (@llifeform)

    Still a problem this, if anyone can help me with it

    Just need to remove this white area

    Good morning @llifeform – when I looked at the live link this morning it looks very different from the screenshot, but as of now it appears that you have placed a logo “Country Norge” (nice job on the logo, by the way) in that area, which leaves the whitespace to the right of it (where the theme allows you to put something – generally an advertisement – to the right of the logo).

    That space won’t go away no matter what you do if you have your logo on the left, as the vertical height is needed for your logo, leaving whitespace to the right.

    So if you don’t want to use that space on the right for an ad, then I would suggest incorporating your Logo into the photo collage just above it, the image that is named “toppbakgrunn2.jpg” and removing it from the Theme customization which puts it below that image….if you have no logo displayed there and de-select the alternate option to show the site title and/or description, and no widget, then that entire full width area should collapse. If not it’s simple to hide it using CSS so if necessary post again and I’ll help you with that CSS.

    Hey @llifeform ,

    I am extremely sorry for the delay.

    I checked your site and it looks like this: https://prnt.sc/224atft

    If you are referring to the white space beside the logo then @trisham is right, it is not possible to remove it because of the vertical height of your logo. I would suggest you do the same thing as @trisham. You can embed your logo to the header image and then hide the space below it using a small CSS snippet if it does not go away.

    Do let me know how you want to proceed.

    Regards,
    ThemeGrill Support Team

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove Header Widget Area?’ is closed to new replies.