• Resolved Benjamin Lu

    (@benlumia007)


    When activating Jetpack Portfolio and add support for the following

    add_theme_support( 'jetpack-portfolio', [ 'title' => true, 'content' => true ] );

    I can see the Portfolio in the customizer but for some reason when I go and edit the title or content or change section to another panel, it doesn’t seem to work.

    $w_customize->get_section('jetpack_portfolio')->title = esc_html__( 'Portfolio Section', 'textdomain' );

    I know these functions above work because of my old theme. Is there anything chance that I need to know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Benjamin Lu

    (@benlumia007)

    on top of this, did a basic code so see if this works, but nope!

    function setup() {
    
        add_theme_support( 'jetpack-portfolio', array( 'title' => true ) );
    
    }
    add_action( 'after_setup_theme', 'setup' );
    
    
    function customize( $manager) {
    
        $manager->get_section( 'jetpack_portfolio' )->title = 'this doesn't work';
    
    }
    add_action( 'customize_register', 'customize' );

    This a simple code that should work but it does throw this error for some reason.

    Warning: Creating default object from empty value in /srv/www/benjlu/public_html/wp-content/themes/rejuvenate/functions.php on line 13

    Hi there,

    I’m afraid we can’t help with this level of customization. Anything that goes beyond the usage described in this blog post is beyond the scope of our support.

    You’re encouraged to keep tinkering, and if you find any bugs or have any enhancement requests related to the feature, please feel free to open a GitHub issue on the public repository.

    You may also leave this thread open in case someone from the community can help with a solution.

    Kind regards.

    Thread Starter Benjamin Lu

    (@benlumia007)

    Hello Daniel, this for the input. I did however figure out, I had to go back to my old theme and look at the priority. It seems like the order of execution were wrong.

    So if anyone need to customize or change location of the section, settings, or controls. You could just use the following

    add_action( 'customize_register', 'function_callback', 11 );
    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Thanks for the update @benlumia007 – Glad you figured it out!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Jetpack Portfolio’ is closed to new replies.