Support » Plugin: Slideshow » A way to remove links from the title/caption

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am hoping I am understanding the question correctly. This will completely remove the link from the title/caption/description/whatever so that it is all just plain text. The image will still have the link attached. Please note that changing this will remove the link from the title/caption/description on all slideshows.

    Navigate to \wp-content\plugins\slideshow-jquery-image-gallery\views\SlideshowPluginSlideshowSlide\

    Edit frontend_attachment.php

    For me it is on line 105 and 106 but search for the lines containing this code:

    <?php echo !empty($title) ? '<h2><a ' . $anchorTagAttributes . '>' . $title . '</a></h2>' : ''; ?>
    <?php echo !empty($description) ? '<p><a ' . $anchorTagAttributes . '>' . $description . '</a></p>' : ''; ?>

    Replace that with this code:

    <?php echo !empty($title) ? '<h2>' . $title . '</h2>' : ''; ?>
    <?php echo !empty($description) ? '<p>' . $description . '</p>' : ''; ?>

    The following code was removed:

    <a ' . $anchorTagAttributes . '>

    and

    </a>

    This will keep all formatting the same and only remove the link. Hope that answers the question!

    This worked perfectly!!!
    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A way to remove links from the title/caption’ is closed to new replies.