WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
[resolved] Remove slider links (8 posts)

  1. adsdesignandprint
    Member
    Posted 1 year ago #

    Hi, i'm sure there's a very simple way of doing this but can't seem to find it.

    I'm using the 'pinboard' theme and have the sticky slider images on the front page. Is there a way to remove the links on these slider images so they aren't clickable? I just want them as images and not links.

    Any advice is appreciated. Cheers.

  2. marjolein64
    Member
    Posted 1 year ago #

  3. adsdesignandprint
    Member
    Posted 1 year ago #

    Thank you for your response i believe this is the relevant bit:

    Hide Picture Link
    In the slider.php after the line:

    <?php if( has_post_thumbnail() ) : ?>
    you have to exclude the following line, like in this example:
    
    <!--
    " rel="bookmark" title="<?php the_title_attribute(); ?>">
    -->

    But where/how do i find the slider.php??

  4. paul.a.cunn
    Member
    Posted 1 year ago #

    Go to "Appearance" then "editor" Then in the top right select Pinboard in the drop down menu. You will see many php files pop up on the right side of the screen. Find the "Slider.php" Then make the change in this file and save.

  5. adsdesignandprint
    Member
    Posted 1 year ago #

    SPOT ON! great. thank you both for your help.

  6. adsdesignandprint
    Member
    Posted 1 year ago #

    resolved

  7. giggamosis
    Member
    Posted 1 year ago #

    I have confirmed this solution but have a little more detail to add. You must comment out the below line and use the comment format like <!-- line to comment out -->.

    <article class="post hentry">
    							<?php if( has_post_format( 'video' ) ) : ?>
    								<?php pinboard_post_video(); ?>
    							<?php else : ?>
    								<?php if( has_post_thumbnail() ) : ?>
    
    This is the line to comment out and in this example i have already added the comment formatting.
    <!--<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">-->
    
    									<?php the_post_thumbnail( 'slider-thumb' ); ?>
    									</a>
    								<?php endif; ?>
    <h2 class="entry-title">
    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    I hope this helps someone in the future. The Pinboard theme is really pretty nice to use.

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    No mention of Child Themes here. Anyone using them?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic