سؤال

I want to let my customer choose any image (in my backend) and then it will be displayed in my header.php. i've found Image Widget, but it just show images in the sidebar. I want something like:

<?php wp_plugin_that_shows_a_simple_image(); ?>

In my header. Which plugin could I use? I've searched a lot. WP 3. Thank you.

هل كانت مفيدة؟

المحلول

WordPress contains built-in support to select header images for a theme. You only have to indicate that your theme supports this, by calling add_custom_image_header(). See the Twenty Ten initialization for details.

In your theme's header.php you then call header_image() to get the current header image.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى wordpress.stackexchange
scroll top