Forums

[resolved] Add Unique Header Using PHP (4 posts)

  1. adrawk7
    Member
    Posted 3 months ago #

    I need to have the SlideDeck plugin appear in the <header> tag only on the home page of my site. I'm not versed in PHP, and I'm trying this, which doesn't work. Any suggestions/advice is much appreciated!

    <?php if(is_page('Mission')){
    echo '<?php slidedeck( 33, array( "width" => "100%", "height" => "220px" ) ); ?>';
    }?>

  2. alchymyth
    The Sweeper
    Posted 3 months ago #

    <?php if(is_page('Mission')) {
    slidedeck( 33, array( "width" => "100%", "height" => "220px" ) );
    } ?>

    only sytax errors corrected - not tested.

  3. adrawk7
    Member
    Posted 3 months ago #

    That worked - thanks so much for your reply!

    I've seen your comments on other posts that have also helped me. Thanks again for taking the time to help folks out with WordPress, which I'm still learning (that and PHP syntax).

  4. Chip Bennett
    Member
    Posted 3 months ago #

    @adrawk7: Be sure to mark this topic as resolved.

Reply

You must log in to post.

About this Topic