The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Genesis child - dynamic header image (2 posts)

  1. big_s
    Posted 3 years ago #


    I am trying to modify the contents of the widget area defined in the header (sidebar) of a Genesis child theme.

    I have used the PHP Text Widget to use a simple PHP based ad image switch in the header widget from the header widget in the admin area:

    <?php if ( is_home() ) { ?>
    	...show ad 1
    <?php }
    else { ?>
    	...show ad 2
    <?php } ?>

    however this seems cludgy and I want to place the decision logic in the functions.php instead of the widget in the admin area.

    What is the most elegant way and best practice to achieve this?

    Many thanks.

  2. Aditya Pandey
    Posted 3 years ago #

    We provide support for theme that is available in WordPress Theme Repository.

    Contact your theme vendor for support.

Topic Closed

This topic has been closed to new replies.

About this Topic