Title: Code Control / Shortcodes
Last modified: January 4, 2018

---

# Code Control / Shortcodes

 *  [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-shortcodes/)
 * Hi there,
 * I have a question I have been meaning to ask you for some time and I just thought
   about it so I thought I had better ask before I forget again…lol.
 * OK so the theme I am working on has a lot of hook built in, I mean pretty much
   the whole theme is one big group of hooks.
 * This was done because there is a companion plugin that comes with it, well it
   has to be purchased, and when activated, the plugin adds additional stuff to 
   the theme. Additional customizer options and so on. Hope that made sense.
 * One of the options it adds is a section that gives the user the ability to add
   code i.e. html, java, php etc and also gives them the ability to insert shortcodes
   to specific hook areas, like the hook that comes before the title or the hook
   after the title.
 * I used a method from another theme to make it possible for the user to do this,
   however I would like to change it if possible. Ideally I would like for this 
   to be part of the customizer and not a separate section like it is now.
 * Anyway, one of the controls I have been playing with of course is the Code Control:
   [http://aristath.github.io/kirki/docs/controls/code.html](http://aristath.github.io/kirki/docs/controls/code.html)
 * Before I go any further with my attempts at using the code control I thought 
   I would ask you if you think this would be possible to use the code control for
   this?
 * For example, I have the following hook in my header: `<?php do_action('totalpress_before_header');?
   >` – of course this hook appears before the header. So if someone wanted to insert
   some html for a add or something like that, then they could add it and it would
   show there.
 * I was thinking of adding a code control to the header options area of the customizer
   that would allow the user to insert php, html and even insert shortcodes into
   this hook. Anything they inserted would of course show before the header.
 * Is it possible to do this with the code control or do you think another control
   would be better suited?

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

 *  [Ari Stathopoulos](https://wordpress.org/support/users/aristath/)
 * (@aristath)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-shortcodes/#post-9848022)
 * I’m assuming this is a duplicate of [https://wordpress.org/support/topic/code-control/](https://wordpress.org/support/topic/code-control/)?
 *  Thread Starter [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-shortcodes/#post-9848518)
 * Um actually no its not, this was I guess you could say a request of some kind.
 * The other was trying to figure out what was going on and why there was a error
   message.
    -  This reply was modified 8 years, 5 months ago by [ThemeAWESOME](https://wordpress.org/support/users/tsquez/).

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

The topic ‘Code Control / Shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/kirki/assets/icon-256x256.jpg?rev=3518366)
 * [Kirki – Freeform Page Builder, Website Builder & Customizer](https://wordpress.org/plugins/kirki/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kirki/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kirki/)
 * [Active Topics](https://wordpress.org/support/plugin/kirki/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kirki/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kirki/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/code-control-shortcodes/#post-9848518)
 * Status: not a support question