• Resolved jeroentiggelman

    (@jeroentiggelman)


    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

    https://www.ads-software.com/plugins/custom-banners/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Jeroen!

    You should be able to achieve this with the “Link Entire Banner” option, on the Basic Options tab.

    We also have some new options on that tab which will allows you to hide the CTA, which may be of interest to you.

    I hope these updates help!

    All the best,
    Richard

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hello!

    I’m following up to mark this topic resolved, as the ability to do this from within the plugin exists.

    Please let us know if you still need help!

    All the best,
    Richard

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Banner completely clickable’ is closed to new replies.