WordPress.org

Ready to get started?Download WordPress

Forums

Kvarken
replacing header image to slideshow (5 posts)

  1. theclee
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year 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 1 year ago #

    try this

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.