Sponsors Carousel
Turn off Linking (2 posts)

  1. mnmanson
    Posted 3 years ago #

    I would like to turn off the linking of graphics. I've tried looking through the code myself but I must have missed where I needed to comment out or delete/null/false that part of it.


  2. Chris
    Posted 3 years ago #

    Right now there is no easy way to do this. The link is built as part of the HTML in the sponsors_carousel function (inside the foreach section near lines 120-130) and it is used as part of the carousel structure. You might also be able to change the tag to a <span>, but I have not tried that, it may break it.

    There are two things to do: remove the 'href' attribute and change the cursor.

    You can also remove the target attribute and the if/else above that since you do not need to get the link. Be careful not to remove the anchor tags ( ) and the id and class attributes.

    This is what I ended up with:

    foreach ( $scwp_array as $id) {
    	$output .= "<li><a ";
    	$output .= " id=\"item".$i. "\" class=\"jcarousel-item\">";
    	if (get_option('scwp_show_titles')=='true') $output .= wp_get_attachment_image( $id,$thumb_size );
    	else $output .= wp_get_attachment_image( $id,$thumb_size, false, array(title=>"") );
    	$output .= "</li>\n";

    Then, add this to your theme's stylesheet or the plugin's /skins/tango/skin.css so that it doesn't change the cursor to a hand/pointer when you hover over the images:

    .jcarousel-skin-tango .jcarousel-item {
        cursor: default;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sponsors Carousel
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.