Skip Navigation

[Resolved] Make one-off change to inserted Content Template without changing the original

This thread is resolved. Here is a description of the problem and solution.

Problem: Can I change a content template applied to View A without changing the same content template applied to View B?

Solution: No, edits to a Content Template applied in any View will affect the same Content Template if it is applied in any other View.

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Ben 5 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1191516

Ben

Is there any way to make a one off change to a Content Template inserted within a View without changing the original?

Changing the code in the Content Template section within a View will change the code in the original as well I believe?

#1191692

You are correct, a Content Template's code is stored independently of any View that contains the Content Template. So if you have Content Template "A" in View "B" and View "C", making a change to the content template code in the View B editor will automatically effect the same change in View C. If you want different Content Template variations for different Views, you must create multiple Content Templates, or use conditional HTML in the same template if possible.

#1192087

Ben

Perfect Christian!

Thank you very much for confirming.