WordPress.org

Ready to get started?Download WordPress

Forums

Genesis child - dynamic header image (2 posts)

  1. big_s
    Member
    Posted 1 year ago #

    Hi,

    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
    Member
    Posted 1 year 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