$value ) { if ( get_option( $key ) != $value ) { update_option( $key, $value ); } else { add_option( $key, $value, '', 'no' ); }}*/ update_option( 'wp_header_images', $_POST['header_images']); } $wp_header_images = get_option( 'wp_header_images'); $wphi_theme = wp_get_theme(); $current_theme = $wphi_theme->get('TextDomain'); ?>
Steps to follow:How it works?
- Click here to open theme header.php
- Insert any of these code snippets inside <body> tag wherever you want these header images to appear. <?php do_action('apply_header_images'); ?> OR <?php do_shortcode('[WP_HEADER_IMAGES]'); ?>