• I’m doing a site where they will not be doing any blog posts. Right now I have some temp slider images set up on some empty blog pages. Is it possible to either:
    1. Set the slider so that it does not link to the blog post pages (in other words, I don’t want someone to click on an image and be taken to a blank blog page)
    or
    2. Set up the slider using images that are on regular, non-blog pages which would be the preferred solution. I have the images on the empty blog pages set to the “slider” category but I don’t find any way to do that on the regular text pages.

    The site link is https://7d6.b0f.myftpupload.com/

Viewing 1 replies (of 1 total)
  • For that, you’ve to go code-wise.
    Go to ‘template-parts/banner-slider.php’. At line 91 you’ll see that slider images are wrapped inside <a> tag. Just remove <a href="<?php echo esc_url(get_permalink(get_the_ID())); ?>"> & also </a>. Leaving just:

    <?php
         the_post_thumbnail( 'full' );
    ?>

    It will do it for you. It will avoid slider navigation to post page as you’ve mentioned.

    Note: It is recommended to make child theme when it comes to editing codes of a theme. Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Question about Slider’ is closed to new replies.