WordPress.org

Ready to get started?Download WordPress

Forums

WP Bootstrap Carousel
Image hyperlink (6 posts)

  1. thekingjunior
    Member
    Posted 8 months ago #

    Hi, Is it possible to add a link to the image, so that the image will be clickable just like the title and the button?

    http://wordpress.org/plugins/wp-bootstrap-carousel/

  2. Peter J. Herrel
    Member
    Plugin Author

    Posted 8 months ago #

    Hi @thekingjunior, could you provide some more details? Are you referring to the default carousel, or to the display posts addon? In the default carousel the images are hyperlinked (thickbox or file), I assume you wish to link to the attachment page?

  3. thekingjunior
    Member
    Posted 8 months ago #

    Yea the default slider, this is the link:

    http://gb90.boomkamp-ict.nl

    i'd like the image to react the same as the title and the button.

    Thanks in advances

  4. Peter J. Herrel
    Member
    Plugin Author

    Posted 8 months ago #

    Seems like you are using the display posts addon. Nice implementation by the way. As you can see in the source the images are linked to the corresponding post by default, and as there's no option to turn that off, it's quite a mystery why they appear unwrapped. Maybe PHP or jQuery is stripping the a tags, but that's just a wild guess. Did you download the plugin from the wp repository, or are you using a customized version, perhaps included with your theme?

  5. thekingjunior
    Member
    Posted 8 months ago #

    Jup thats right, thanks! :)

    I updated to 2.1, but why is the slider set to 300 in wp-bootstrap-carousel-dps.php on line 119? I changed it to "auto" otherwise i have a slider of 300px wide.

    Anyway now the image links to the image used in the post. Now it just needs to link to the location of the post..

  6. Peter J. Herrel
    Member
    Plugin Author

    Posted 8 months ago #

    Adding a thickbox="0" param should resolve that. The default width is an issue still to be addressed, relevant ticket here.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.