Design & Custom Template

Permalink
Hi all,

I am having a strange issue with concrete5 5.7.5.1. I have created an empty theme, and I am building the custom templates. Everything works well with my full.php file, but for some reason when I try to add a background image to a block using the Design & Custom Template menu option, I don't get the panels that should pop up when I choose a button in the small toolbar. The toolbar comes up, but when I click a button (any of the buttons) nothing happens. When I inspect the code, there is no div with the panel content. I am wondering if I am omitting something in my theme folder, but when I look at the built in themes that come with c5, I see nothing that stands out.

Any ideas would be greatly appreciated. I tried searching the c5 forums, and the interwebs in general, and could not find help.

Thanks,
Craig

vergedesign
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi vergedesign,

Can you include a screenshot of what you are describing?

Do you have any errors in your browser console?

If you are using external JavaScript assets, are they registered in your theme page_theme.php?
vergedesign replied on at Permalink Reply 1 Attachment
vergedesign
Thanks for the speedy reply, MrKDilkington

I am getting sporadic console errors (below). They don't always appear. I searched these on Google and got nothing of note.

Also attached is a screen shot. You can see that the button is registering a click, but I get no panel.

[Warning] Invalid CSS property declaration at: * (spectrum.css, line 1, x2)
[Warning] Unexpected CSS token: : (spectrum.css, line 1, x8)
[Warning] Invalid CSS property declaration at: * (spectrum.css, line 1, x4)
[Warning] Invalid CSS property declaration at: * (select2.css, line 1)
[Warning] Unexpected CSS token: : (select2.css, line 1, x11)
MrKDilkington replied on at Permalink Reply
MrKDilkington
Is it only the "Background Color and Image" button that doesn't work?

If you activate the default Elemental theme, do the buttons work?
vergedesign replied on at Permalink Reply
vergedesign
Ah, good suggestion. It works fine when I activate the Elemental theme. And yes, none of the buttons in the toolbar are working.
vergedesign replied on at Permalink Reply
vergedesign
Still doesn't work when I apply my custom theme. Any suggestions?
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Does your theme have a page_theme.php file?

If so, are you registering any assets with registerAssets()?

Does your theme include jQuery or jQuery UI?
vergedesign replied on at Permalink Reply
vergedesign
Eureka!

I added a page_theme.php file with the base set of assets, deleted the theme (switched to Elemental first), then reinstalled the theme and activated it, and the panels all appear perfectly now.

Going though the c5 online help to get any more info I can regarding this, but thanks for the persistence!

Craig