Banner completely clickable
-
Hi,
I hope you can help me out with this. I like your Banner very much. But, I like to have the text including the overlay to be clickable as well. Like it’s one block. (look at this page, and you understand what I mean. I’m not a PHP programmer but I know a bit about it. I would like to change your PHP-script a bit at my side to get it working. I hope you can help me change the code and put it back in the answer. I don’t need the ‘call to action’ by the way…// generate the html now $html .= '<div class="banner_wrapper" '. $banner_display .'>'; $html .= '<div class="banner ' . $extra_classes_str . '" style="' . $banner_style . '">'; if($use_big_link){ $html .= '<a class="custom_banners_big_link" ' . $link_target . ' href="' . $target_url . '"></a>'; } $html .= $img_html; $caption = $banner->post_content; if (strlen($caption) > 0 || strlen($cta) > 0) { $html .= '<div class="banner_caption">'; $html .= $caption; if (strlen($cta) > 0) { $html .= '<div class="banner_call_to_action">'; $html .= '<a href="' . $target_url . '" ' . $link_target . ' class="banner_btn_cta">' . htmlspecialchars($cta) . '</a>'; $html .= '</div>'; //<!--.banner_call_to_action--> } $html .= '</div>'; //<!--.banner_caption--> } $html .= '</div>'; //<!--.banner --> $html .= '</div>'; //<!--.banner_wrapper--> return $html; }
Hope you can help me…
Thanx,
Jeroen,
The Netherlands
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Banner completely clickable’ is closed to new replies.