Design&Custom Template does not work- conflict
I can't use design&custom template at all in my theme- I tried to follow the instructions fromhttps://www.concrete5.org/documentation/developers/5.7/designing-for... that shows exactly my problem but still the design&custom template tab doesn't work.
My page_theme.php I pasted in my application/themes/DHK folder is
Please can anybody tell me what I'm doing wrong?
If you zip your theme up and attach it with a reply, I can take a look at it.
many thanks- here is my theme. My other huge problem is the auto nav - I need it to be displayed horizontally like in the html and after spending many hours I still can't achieve this. I really need any advise/tips how to do this.
Thank you once again for your time,
In the theme I commented changes made.
- missing *
- correct asset syntax
There other issues I recommend looking into.
- you are missing default.php
"The one file every theme needs is default.php. This template is used any time a page that has a specific page template can't find a file in the theme's directory that matches the template's handle."
- the theme CSS is global, which is causing conflicts with the concrete5 interface (it is recommended to scope the CSS to the class ccm-page)
- you have a large number of areas that are not necessary or could be replaced with custom layouts
Do you have caching enabled? If so, it should be disabled during development.
Dashboard > System & Settings > Optimization > Cache & Speed Settings
Is this on a live server or local?
class PageTheme extends \Concrete\Core\Page\Theme\Theme
public function registerAssets()
protected $pThemeGridFrameworkHandle = 'bootstrap3';
While logged in if I comment out the bootstrap and jquery links I can use the Design&Custom Template options. If I log out though my pages give jquery errors as if jquery isn't loading. Why would the page_template file register these assets when I'm logged in but not when I'm logged out?
You are telling concrete5:
- that you want concrete5 to load its own copy of jQuery in your theme
I installed and tested your updated theme again.
The Design & Custom Template menu is available. The global CSS is causing a background color issue though, but it doesn't prevent the menu from working.
I have attached a screenshot of it.
Are you using custom blocks that you made yourself?