Cannot use ampersand in custom sidebar name

Posted in: Newspaper
Post count: 4

It’s taken me hours to figure this out as I couldn’t understand why I encountered this problem with some custom sidebars but not others. I finally figured it out so thought that I would post to help anyone else who encounters this problem.

I created a custom sidebar. Then on the widget page I dragged any widget into the sidebar & saved it. The page with the custom sidebar displays on the website OK. However if I leave the widget page then return to it the contents of the custom sidebar have disappeared.

I eventually realised that the problem only occurred with sidebar names that include an ampersand so for example
‘Towns & Villages’ loses the sidebar contents but ‘Towns and Villages’ does not.

Maybe this is documented somewhere but if it isn’t it should be to prevent user frustration.

Post count: 9544

Common issue with WordPress and HTML entities as “&” is not a normal character on the web.

So, you often have to escape that as ‘ & or if this stupid thing auto corrects here, it’s & amp; with no spaces).

  • This reply was modified 11 years by simchris.
Post count: 7909

Hi,

Thanks Chris!
Like Chris suggested if you use html in sidebar name you may have this issue. The sidebar name is visible only in backend so I do not think it will be a big problem if you do not use html characters, off course it is frustrating to disappear the content(widgets).

Thanks that you brought this into attention, it may help some other users if facing this issue!

Post count: 4

I am not using HTML in a sidebar name. I am just using the same name as the title of the sidebar.

I have been using WordPress for many years & never encountered a similar problem with any other theme.

This is a bug in the Newsmag theme & should be documented or better still fixed.

Post count: 6600

Hi,

I’ll add this on our issues list and and try to remediate it in next theme versions.
Sorry for the inconvenience!

Thanks for the message!

Post count: 8

Having the same issue, how can I rename the custom sidebar or (if not possible) delete it?

Post count: 7909

Hi,

Unfortunately sidebar cannot be renamed, but you can delete it: http://screencast.com/t/gDWEPXHoj
But first you can create another custom sidebar and move your widgets into it so you will not lose them.

Thanks!

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