Title: Code Sections Toggle function
Last modified: July 28, 2017

---

# Code Sections Toggle function

 *  [MKSnMKS](https://wordpress.org/support/users/mksnmks/)
 * (@mksnmks)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/code-sections-toggle-function/)
 * It would be handy to have a feature that allows the code to be treated in “sections”,
   each of which can be toggled on or off, or possibly allocated to certain pages.
 * This saves the inconvenience of dealing with cut and paste tasks, using an external
   text file, for switching codes on or off.
 * The toggle system would also allow alternative codes for similar tasks to be 
   compared.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [ThemeBright](https://wordpress.org/support/users/themebright/)
 * (@themebright)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/code-sections-toggle-function/#post-9461922)
 * This is an interesting feature concept that I can certainly see the use case 
   for, but I tend to think something like [Google Tag Manager](https://www.google.com/analytics/tag-manager/)
   would be a better solution for someone needing that functionality.
 *  Thread Starter [MKSnMKS](https://wordpress.org/support/users/mksnmks/)
 * (@mksnmks)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/code-sections-toggle-function/#post-9462335)
 * I was thinking more generally, for code that does any function.
    Very easy to
   compare alternatives. Very easy to switch on an off.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code Sections Toggle function’ is closed to new replies.

 * ![](https://ps.w.org/embed-code/assets/icon.svg?rev=1418237)
 * [Embed Code - Headers & Footers by DesignBombs](https://wordpress.org/plugins/embed-code/)
 * [Support Threads](https://wordpress.org/support/plugin/embed-code/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-code/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [section](https://wordpress.org/support/topic-tag/section/)
 * [toggle](https://wordpress.org/support/topic-tag/toggle/)

 * 2 replies
 * 2 participants
 * Last reply from: [MKSnMKS](https://wordpress.org/support/users/mksnmks/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/code-sections-toggle-function/#post-9462335)
 * Status: not a support question