Follow us on

Codestar Support Forum » WordPress Plugins » Codestar Framework

Customizer options not showing up

  1. Hey buddy,
    Hope all is well and thanks again for helping me with the check/all.

    I'm trying Customizer for the first time and followed the instructions installing codestar-framework in my-theme/inc directory, created a settings.php file in my-theme/inc and copied in your sample code and nothing shows on the Customizer. Am I missing something? Is the Customizer.js part required as well. I guess I don't understand how to make it work.

    Thanks for your great support.
    Russ

    Posted 1 year ago #

  2. Codestar
    Admin

    Hi,

    You're welcome.

    Hmm, there is no another setting. Config file is enough... For eg, If you paste below code, it must work normally:

    // Control core classes for avoid errors
    if( class_exists( 'CSF' ) ) {
    
      //
      // Set a unique slug-like ID
      $prefix = 'my_framework';
    
      //
      // Create customize options
      CSF::createCustomizeOptions( $prefix );
    
      //
      // Create a section
      CSF::createSection( $prefix, array(
        'title'  => 'Tab Title 1',
        'fields' => array(
    
          //
          // A text field
          array(
            'id'    => 'opt-text-1',
            'type'  => 'text',
            'title' => 'Text 1',
          ),
    
        )
      ) );
    
    }CopyCopied!

    You can show me some screenshot from your configuration.

    Regards, Codestar

    Posted 1 year ago #
  3. https://www.screencast.com/t/dstm6AFFjDf
    Here is a short video showing the framework installed on theme twentytwentyone in /inc
    the functions.php file has the line
    require_once get_theme_file_path() .'/inc/codestar-framework/codestar-framework.php';
    and nothing showing up in the Customizer
    What am I doing wrong?
    Thanks,
    Russ

    Posted 1 year ago #
  4. OK, never mind!
    The Customizer Options code goes inside the functions.php file and not in a inc/settings.php file right?
    It is working this way.

    Is the cf-underscores.zip plugin still working properly? It seemed to output the code but it did not remove (views, examples) and it is still using CSF class configuration instead of your example of the class POWERX so It didn't rename the class, it also did not rename the folder it output to. It was still codestar-framework but did have the file powerx-framework.php?

    Posted 1 year ago #

  5. Codestar
    Admin

    Hi @digibread,

    I was so busy nowadays.

    Your configuration looks correct, interesting... and yes still you can use csf-underscores.zip.

    Regards, Codestar

    Posted 1 year ago #