• Resolved wen.wainwright

    (@wenwainwright)


    I’ve added a text widget to a widget area in the header above the header image. I’ve moved the navigation below the header image. I am not displaying the title or site description. However somehow the div#page.hfeed.site is no longer including anything below the navigation. Here’s a link: https://testsite1.strongerwithjeng.com/

    I had to add an additional div <div id=”specialheader”> after <div id=”page” class=”hfeed site”> and closed it before </header><!– #masthead –>. Without that additional tag the header area was also broken. But I cannot figure out why the rest of the page is no longer included!
    *yes I have a child theme

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael

    (@alchymyth)

    Thread Starter wen.wainwright

    (@wenwainwright)

    I broke the entire thing beyond repair and had to delete the database and reinstall. So since I’m starting over (and I will validate before I come back with another question) what makes the most sense in terms of adding a row, above a header image (with the navigation below the header image and the site title/description not being displayed)? Does it make sense to add a widget area there and add via text widget or should it be a whole new div?

    Michael

    (@alchymyth)

    using a widget area makes sense if you need to be flexible with what you want to add above the header; if you then use a text widget or a custom menu widget, or whatever widgets, does not matter…

    if you simply want to add a more or less static menu on the top, then hard-coding (or using any of the menu codes of WordPress) might be the easier option.

    all in a child theme of course; https://codex.www.ads-software.com/Child_Themes

    Thread Starter wen.wainwright

    (@wenwainwright)

    Thank you so much. I’ve managed to get two widget areas in the header, one of them I’d like to line up with the logo and I can do that in CSS. I’ll try the hard-coding on the next site. I was able to add the two widget areas using the tutorial on your blog so that’s great and I appreciate it! The only part that was hard was figuring out how to name the widget areas, obviously I couldn’t just copy your example twice and have two different things, but I figured it out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding a Custom Widget Area to a WordPress Template – TwentyTwelve’ is closed to new replies.