Creating an Option Page

Community Forums Forums General Discussion Creating an Option Page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cdils 1 year, 9 months ago.

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

    Treefungus
    Participant
    Post count: 51

    Hi

    I am working on creating an option page for my Genesis Child Theme however I have run into a problem. I need to add this

    <?php $options = get_option(‘plugin_options’); ?><img src=”<?php echo $options[‘logo’]; ?>” alt=”Logo” />

    into (well normally index.php) in order to display the logo however Genesis Child Themes work differently. Where do I add this  code so people can upload the logo in the wordpress back office and it appears in the title area?

    Thanks

    #28373

    cdils
    Participant
    Post count: 423

    Heya,

    Try adding this to functions.php:
    /** Add custom header support */
    add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘height’ => 100, ) );

    Of course, change the width/height to match your theme. That’ll add an option called Header to the Genesis Menu where you can upload a logo.

    Cheers,
    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

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

You must be logged in to reply to this topic.