How do I plug my them into the Genesis Import/Export Page?

Community Forums Forums Design Tips and Tricks How do I plug my them into the Genesis Import/Export Page?

This topic is: resolved

Tagged: ,

This topic contains 1 reply, has 1 voice, and was last updated by  Ahjira 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27232

    Ahjira
    Participant
    Post count: 8

    Question for the theme ninjas… I have a theme I’m developing and I’d like to include its settings in the Genesis Import/Export functionality. I see the filter “genesis_export_options” but I’m having trouble getting it to work. Where do I create my $options array and apply the filter? My options page is a standard Genesis options page (extends Genesis_Admin_Boxes).

    #27277

    Ahjira
    Participant
    Post count: 8

    Nevermind I got it working! I just basically followed what Prose does by adding a file named import-export.php and adding this to it:

    add_filter( ‘genesis_export_options’, ‘theme_export_options’ );
    function theme_export_options( $options ) {
    $options['themename'] = array(
    ‘label’ => __( ‘My Theme Options’, ‘theme’ ),
    ‘settings-field’ => THEME_SETTINGS_FIELD,
    );
    return $options;
    }

    …and then adding this to functions.php

    require_once( CHILD_DIR . ‘/lib/import-export.php’ );

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

The topic ‘How do I plug my them into the Genesis Import/Export Page?’ is closed to new replies.