Community Forums › Forums › Archived Forums › General Discussion › Secondary Sidebar still showing up even though it is unregistered
- This topic has 4 replies, 3 voices, and was last updated 10 years, 4 months ago by BrettOnTheNet.
-
AuthorPosts
-
December 25, 2013 at 3:03 am #81146BrettOnTheNetMember
Hi there
I was just trying to set up a site using a theme that ZigZagPress gave away recently (Novo). They are not supporting the theme.
I've got an odd problem - the theme is displaying a secondary sidebar (sidebar-alt) on my blog pages. It says:
"SECONDARY SIDEBAR WIDGET AREA
This is the Secondary Sidebar Widget Area. You can add content to this area by visiting your Widgets Panel and adding new widgets to this area."The problem is that this sidebar is Unregistered in the functions.php.
unregister_sidebar( 'sidebar-alt' );
So there is no widget area in Appearance, which is what you would expect. But the thing just shows up in an unwanted location on the site, and I don't know how to get rid of it.
Unfortunately I am doing this on a local server so can't give you a URL to look at. But basically this sidebar is appearing on my blog pages, way down the bottom, and forcing my content into a column on the left rather than full-width.
Any ideas how and why this sidebar is showing, even though it has been unregistered?
Thanks a lot
BrettDecember 25, 2013 at 8:10 am #81156AnitaKeymasterFirst I'd like to stay that, I am not knocking the theme developer - but before I download and use any theme - free or premium, I look to see if they provide support. If they don't - I don't use them, period.
Make sure your apostrophes are truly apostrophes in the correct way. Sometimes when you copy/paste code, the apostrophes are not correct.
The other thing is - where did you place the code - top, bottom, middle, etc.? Can you provide a screenshot of your issue?
Love coffee, chocolate and my Bella!
December 25, 2013 at 1:31 pm #81188BrettOnTheNetMemberI know where you are coming from with the free theme & no support. I did hesitate, but I've used ZigZagPress themes in the past and they have been OK. They create nice looking themes, and I have not had a problem with the ones I purchased from them.
There has been no copying/pasting of code. I just downloaded the theme and installed it into WordPress.
I'm typing this on my phone, so I can provide screenshots later if need be.
But the thing is ... free theme or not, this sidebar has been unregistered in the functions.php file, which is also evidenced by the fact it doesn't appear in the Appearance/Widgets area, yet it still displays on page.
I've found that genesis has a sidebar-alt.php in its files, so I copied it to the child theme and commented out all the code. That seems to have fixed things. I had to mess with some CSS widths too.
But I just don't understand how it could still appear. Could this be the result of some non-standard coding by the theme developer? Could it have anything to do with the fact that I am running it locally on XAMPP? The demo theme does not have this problem.
I'm now really just more curious how the sidebar which has been unregistered is still able to appear.
Thanks
BrettDecember 25, 2013 at 5:12 pm #81199SummerMemberI love the ZigZag guys' sense of design, but sometimes they get a little careless with their coding -- I could write a book about issues I have with Prestige on a client site, and even they don't know how to fix it 🙂
I just put it on a test site, and I see what they did... what it looks like they did with Novo is forget to force the default layout to be full width... I don't see that in functions.php, only in the individual templates.
If you go to the Genesis Settings and look at the Default Layout box, you'll see that there's only one option in there, the full width layout, but it's not selected. If you select that and save your settings, problem solved.
As for how sidbars show up in unexpected places, I found the same problem happening with themes from appfinite... those custom home pages still display the standard content-sidebar-wrap divs before the footer calls, even though they're never used. Makes me wonder if calling
genesis();
at the end of custom homepage templates is the cause, and maybe they need to directly call the footer instead, to avoid adding unused default content-sidebar sections.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkDecember 25, 2013 at 6:44 pm #81203BrettOnTheNetMemberThank you Summer. I did spot that there was only the one option in there, but not that it wasn't selected. That did fix the problem.
Great stuff!
In playing with the theme for a little bit, I'm not so convinced now that the hidden sidebar that Novo has is such a great idea, if you want those areas to actually be useful.
And now that you mention it about ZigZag - I remember now that I've had a similar issue with another of their themes. I've not got Prestige yet, I've considered it many times.
Thanks again!
Brett -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.