WordPress.org

Ready to get started?Download WordPress

Forums

vSlider as header??? (2 posts)

  1. Tlaron
    Member
    Posted 2 years ago #

    Hi everyone,
    I am creating a WordPress website and I wanted to have a slider header. I downloaded, installed, activated and customized the vSlider and I know how to have it on a page but I'd like for it to be the header for the website. I looked up tutorials and forums and they suggested adding this code in the header.php file of the theme. Here's the code:
    <?php if( is_front_page() AND function_exists('vslider')) {vslider(); } ?>

    The problem is I don't know exactly where to paste the code. I placed it in the header.php file in many different places and tried it and it doesn't show up at all. I was wondeirng if this is because I placed the code in the wrong places. If anyone had anyhelp on where I should paste the code in the header.php file or if any knew how to have a slider as the header for you site it would be much appreciated. Thanks again everyone

  2. Mr. Vibe
    Member
    Posted 2 years ago #

    <?php if( is_front_page() AND function_exists('vslider')) {vslider(); } ?>

    use

    <?php if( is_front_page())
    { if(function_exists('vslider'))
    {vslider(); }
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic