WordPress.org

Ready to get started?Download WordPress

Forums

Kvarken
replacing header image to slideshow (5 posts)

  1. theclee
    Member
    Posted 11 months ago #

    i am a newbie to wordpress. I'd like to have a slideshow instead of header image on the site.

  2. theclee
    Member
    Posted 11 months ago #

    Where could I replace this line from header.php? or other file?

    <?php do_action('slideshow_deploy', '58'); ?>

  3. Carolina Nymark
    Member
    Theme Author

    Posted 11 months ago #

    Yes open header.php, and add your plugin code:

    To place it above the menu: paste it under the
    <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>

    Below the menu: paste it above the ending </div> that is at the very bottom of the file.

    Remove the header image in the customizer.

  4. theclee
    Member
    Posted 11 months ago #

    thanks poena. I made it to work on slideshow on all the pages.
    but please let me know how to make the slideshow appear on only home screen not on other page.

  5. Carolina Nymark
    Member
    Theme Author

    Posted 11 months ago #

    try this

    <?php
    if ( is_home() ) {
        // This is a homepage
         do_action('slideshow_deploy', '58');
    }
    ?>

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.