Menu Assignment to other template do not work in 3.8.1
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Menu Assignment to other template do not work in 3.8.1
Just updated to Joomla 3.8.1 and trying to use the duplicate template feature with different styles. No problem creating the copies with different names but the style of both is defined by the original template Can't find a way to have two different styles. The duplicated template has it's own style but it is not picked up in the front end. Any help appreciated.
- jackrabbit
- Joomla! Ace
- Posts: 1473
- Joined: Thu May 21, 2009 3:12 am
- Location: Florida
- Contact:
Re: Cannot change style of duplicated template
I don't get that template duplication system. It just creates a duplicate database name of the template but not a copy of the folder and files so the changes made are those of the original.
It's best to manually make a copy of the entire template folder, then install with the Discover tool in Extensions Manager.
It's best to manually make a copy of the entire template folder, then install with the Discover tool in Extensions Manager.
Reset Joomla super user password and username simply | http://cmsenergizer.com/website-energy- ... d-remotely
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
Thanks for the tip. I'll try that and see what happens.
- Per Yngve Berg
- Joomla! Master
- Posts: 30890
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Cannot change style of duplicated template
Extensions->Templates->Templates, open the template and click the copy template button
It does copy the template to a new folder. It also creates a default style for the new template.
It does copy the template to a new folder. It also creates a default style for the new template.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
Yes it creates a copy of the original template in a new folder and with a default style. The problem is that this style is not picked up in the front end. It uses the style of the original template and no matter what I do to the User CSS or the template CSS it still doesn't see the new style
- Per Yngve Berg
- Joomla! Master
- Posts: 30890
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Cannot change style of duplicated template
It worked when I copied Protostar to test. Changed text to red in test-Default. Got red text in front-end.
What template are you copying? The path to the css files may be hard-coded in your template, so they are still loaded from the old folder. This is how Protostar loads css:
What template are you copying? The path to the css files may be hard-coded in your template, so they are still loaded from the old folder. This is how Protostar loads css:
Code: Select all
// Add Stylesheets
JHtml::_('stylesheet', 'template.css', array('version' => 'auto', 'relative' => true));
// Check for a custom CSS file
JHtml::_('stylesheet', 'user.css', array('version' => 'auto', 'relative' => true));
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
I'm using protostar. I have even tried using a completely different template but the style is the same as the original. I think the problem is something to do with the fact that the original template is the default for all pages irrespective of template and I can't seem to change it
- Per Yngve Berg
- Joomla! Master
- Posts: 30890
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Cannot change style of duplicated template
Extensions->Templates->Styles
The default is marked with a yellow star. You can move it to another entry.
The default is marked with a yellow star. You can move it to another entry.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
When I move the default style to another entry as you suggest for example to an entry in the new template then this new style is also applied to the original template. There seems to be no way I can have one style for the original template and another for the new template. The default style is applied to all pages irrespective of the template chosen.
- Per Yngve Berg
- Joomla! Master
- Posts: 30890
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Cannot change style of duplicated template
Open the Style. On the Details Tab it says what template the style is working on.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
The style details for the template show the correct settings. Also when I look at the template preview in Templates (Customise) It shows the home page with all the correct styling. Its just not seeing it in the front end.
- Per Yngve Berg
- Joomla! Master
- Posts: 30890
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Cannot change style of duplicated template
Does it work when you set the Style as default, or is it Menu Assignment that do not work?
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
Yes it works when the style is put as default but then all pages change to this style, not just the ones in the duplicated template
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
Sorry, yes - it's the Menu Assignment that isn't working. The default template is used on all pages, even though we've assigned a different template to some of them. We also tried going into the menu settings and making sure the assignment is correct there too - it is. Thanks for the help
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Cannot change style of duplicated template
Its definitely the menu assignment that doesn't seem to be working. Any help much appreciated.
Thanks
Thanks
- Per Yngve Berg
- Joomla! Master
- Posts: 30890
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Menu Assignment to other template do not work in 3.8.1
Mod. Note: Changed the title to more reflect the issue.
There have been bugs with the menu assignments from time to time. Looks like this bug is back in 3.8.1.
There have been bugs with the menu assignments from time to time. Looks like this bug is back in 3.8.1.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Menu Assignment to other template do not work in 3.8.1
Thanks for the advice. Hope something comes up.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 06, 2017 6:48 pm
Re: Menu Assignment to other template do not work in 3.8.1
Has anyone got any ideas how to solve the menu assignment problem? I'm stuck!
- Jaydot
- Joomla! Guru
- Posts: 651
- Joined: Sun Jun 04, 2017 12:11 pm
- Location: The Netherlands
- Contact:
Re: Menu Assignment to other template do not work in 3.8.1
Hi,
I'm not sure this will help, but I have a 3.8.1 sandbox site where I experiment with template modifications - see attachment.
I duplicate, copy, assign, remove, re-assign templates all the time there.
When I want to use a "new copy" of the template, I duplicate it, click on the style name, and assign it to any page using the "menu assignment" tab.
It all works flawlessly, front-end and back-end, so I don't believe it's a bug in 3.8.1...
By the way: I am a fanatical cache cleaner.
I'm not sure this will help, but I have a 3.8.1 sandbox site where I experiment with template modifications - see attachment.
I duplicate, copy, assign, remove, re-assign templates all the time there.
When I want to use a "new copy" of the template, I duplicate it, click on the style name, and assign it to any page using the "menu assignment" tab.
It all works flawlessly, front-end and back-end, so I don't believe it's a bug in 3.8.1...
By the way: I am a fanatical cache cleaner.
You do not have the required permissions to view the files attached to this post.
The fact that an opinion is widely held is no evidence whatsoever that it is not utterly absurd.
Personal website: https://jaydot.nl
Personal website: https://jaydot.nl