Support » Plugin: Sponsors Carousel » Turn off Linking

Viewing 1 replies (of 1 total)
  • 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;
Viewing 1 replies (of 1 total)
  • The topic ‘Turn off Linking’ is closed to new replies.