Support » Plugin: Kirki Customizer Framework » 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:

    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code Control / Shortcodes’ is closed to new replies.