Support » Theme: Coraline » Adding Theme Customization Options

  • I am new to WordPress, and have been learning to add options to the Theme Customization page). I read the WordPress Documentation on Theme Customization API, and was able to locate, in other themes, where they had the PHP that added these options and made these changes. From there, I could add more options and change the available ones.

    However, I can’t locate in Coraline where they add these options. The other themes I have played with have had them in “functions.php”, but in Coraline I can not locate them there. I have basically just been using “ctrl-f” to locate where someone calls “customize_register”. This led me to the right place for other themes, however I can’t locate this called in the files for Coraline. Am I just looking for the wrong things, or in the wrong places?

    Any direction would be appreciated, thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi mitigateddisaster,

    You can install and activate ‘advanced code editor’ plugin that you can use for customization, after installing and activating it you can find it on your dashboard>appearance>editor.

    It is also best practice to create a child theme of your caroline theme before you do some customization. You can read about child theme here:

    Hi Jay,

    I’m currently using a child theme. I understand how to edit the code, and while the addition of the extra features in the plugin is certainly useful, it didn’t exactly answer my question.

    I am wondering where, specifically to Coraline, to locate the PHP used to customize the options in the Theme Customization editor page. I can’t find where Coraline locates these.
    This says that all settings, sections, and controls must be defined from within “customize_register”, and I have searched Coraline’s files for a mention of this and turned up nothing. I am wondering how Coraline defines these options, and where, and how I can add to them.

    Thank you.

    Well, since I am not really a coder, I am not sure. All I know is, if you want to add a new function to your theme, you can create a new function.php file in your child theme. Unlike stylesheet and other php file, if you put it on the child theme it will override the file from its parent theme, but in the case of function.php, if you will put any new functions it will only be added but not override the existing function.php on the parent theme.

    Moderator Kathryn


    Automattic Happiness Engineer

    I am wondering how Coraline defines these options, and where

    Coraline’s customizer options are in /inc/theme-options.php, with related styles in /inc/theme-options.css.

    Let me know if this is what you were after.

    and how I can add to them.

    This is a bit trickier, since adding functions to a child theme works differently than other parts of a child theme, as Jay mentioned above.

    To get started, you may want to read some tutorials specifically geared to overriding functions with a child theme:

    Add functions to your WordPress child theme (1)

    Add functions to your WordPress child theme (2) – Create a new function

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Theme Customization Options’ is closed to new replies.