• Resolved rmurdo

    (@rmurdo)


    Hi all,

    I’d like to replace the slider with a static image. I thought it was in the index.php for the theme were it says:

    get_header(); ?>
    <div class=”top-section”>

    <?php dazzling_featured_slider(); ?>
    (comment out the above line and add my image here)
    <?php dazzling_call_for_action(); ?>
    </div>

    However, no change when I empty cache and refresh. Any ideas? Going NUTS here.. haha

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you provide a link to your site so we can see if the image is there?

    Thread Starter rmurdo

    (@rmurdo)

    Its on a local server. Its showing the test post with a featured image.

    Theme Author Silkalns

    (@silkalns)

    Your described steps are correct and your image should appear on front page if you used the right code to add image.

    Also this can be done via Child Theme.

    Sometimes when editing WordPress php files changes are not displayed instantly and you might clear WordPress cache. It can be done by opening any post and simply pushing update just to make sure that PHP does its thing.

    Thread Starter rmurdo

    (@rmurdo)

    Found the issue. I was trying to use index.php. It was actually front-page.php that I needed to edit.

    Rob

    Silkains, thank you for including the above statement:

    “Sometimes when editing WordPress php files changes are not displayed instantly and you might clear WordPress cache. It can be done by opening any post and simply pushing update just to make sure that PHP does its thing.”

    I was just refreshing the page with no results – super frustrating! I never considered I would have to update the page for the php to take proper effect.

    THANKS!!!!!!!!!!!!!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Replace slider with static image.’ is closed to new replies.