• Resolved catacaustic

    (@catacaustic)


    I’m having trouble trying to make a new customizer class. I’ve followed the tutorials as well as the Codex page, and as far as I can see I’m doing everything correctly, but I can’t get my customisation section to show.

    For more details, the section shows up when the customizer is loading, but it gets hidden as the section doesn’t contain any controls, even though I’ve got them added in the code.

    The code is here -> http://pastebin.com/zuzXkzQj

    I’ve done the standard things, and from what I can see the section, setting and control are all being added to the customizer object, so I’m feeling a bit lost as to why it’s not showing up.

    If anyone has any ideas, I’d love to hear them!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter catacaustic

    (@catacaustic)

    I’ve found where the problem is… but I might keep diggint to find out exactly whey when I have the time…

    It turns out that it was pretty much my fault. I was loading the customiser class in a call to if(is_admin()), and for some reason that was blocking the control from being added to the section. I’m sure there’s a reason behind that, but I’m not sure why at this stage, but at least it’s working now!

    Thanks, it solved my issue too.

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

The topic ‘Customizer not showing control’ is closed to new replies.