Entire button clickable?

Viewing 6 posts - 1 through 6 (of 6 total)
#10803

Gonzalez74
Member

Good morning.
How can I customize the CSS (maybe through the one css class?) to make the download button all clickable, instead of having inside him just the text with link? I’m ok with the text with link, if i can make the button clickable too ๐Ÿ™‚
Thanks ahead ๐Ÿ™‚

#10805

Gonzalez74
Member
#20386

Liam Allan
Member

find the following code in download-manager.php (roughly line 214):

$html = "<div id='wpdm_file_{$id}' class='wpdm_file $template'>{$title}<div class='cont'>{$desc}{$password_field}<div class='btn_outer'><div class='btn_outer_c' style='{$bg}'><a class='btn_left $classrel $hc' rel='{$id}' title='{$data['title']}' href='$url'  >$link_label</a>";
    if($data['show_counter']!=0)
    $html .= "<span class='btn_right counter'>$data[download_count] downloads</span>";    
    else
    $html .= "<span class='btn_right'>&nbsp;</span>";             
    $html .= "</div></div><div class='clear'></div></div></div>";

and replace with:

$html = "<div id='wpdm_file_{$id}' class='wpdm_file $template'>{$title}<div class='cont'>{$desc}{$password_field}<a class='btn_left $classrel $hc' rel='{$id}' title='{$data['title']}' href='$url'  ><div class='btn_outer'><div class='btn_outer_c' style='{$bg}'>$link_label";
    if($data['show_counter']!=0)
    $html .= "<span class='btn_right counter'>$data[download_count] downloads</span>";    
    else
    $html .= "<span class='btn_right'>&nbsp;</span>";             
    $html .= "</div></div></a><div class='clear'></div></div></div>";
#20388

Shahjada
Keymaster

@Gonzalez74, Please give me your url to check

#20390

Liam Allan
Member

#20558

Martyprod
Member

I have the same issue, would love to have the whole button working to, instead of clicking just the text !!
my download page is here, thankx !

http://didiermartini.com/freesheet/

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Entire button clickable?’ is closed to new replies.