[resolved] A way to remove links from the title/caption (3 posts)

  1. Exciting Events
    Posted 2 years ago #

    I see that you respond so quickly! Thank you for that.

    I was wondering if there was a way to remove the link from the title/caption bar that pops up and continue using the link thats assigned to the image.



  2. srfrmac87
    Posted 2 years ago #

    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 . '>



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

  3. Exciting Events
    Posted 2 years ago #

    This worked perfectly!!!
    Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic