Removing the link from geodir_bubble_image

This topic contains 2 replies, has 2 voices, and was last updated by  bennyb 7 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #375970

    bennyb
    Expired Member
    Post count: 19

    Hi there,

    i managed to remove the link from the title/h4 with this code (even so i had quotation issues, but i commented it):

    
    
    // REMOVE GEODIR LINK FROM TITLE beware, wrong quotations --> https://wpgeodirectory.com/support/topic/map-pop-up-2/
    function my_remove_bubble_title($html, $postinfo_obj, $post_preview){
            $srcharr = array("'",'/', '-', '"', '"\"');
            $replarr = array('′', '⁄', '–', '“', '');
    
        if (isset($postinfo_obj->post_id)) {
            $ID = $postinfo_obj->post_id;
            $plink = get_permalink($ID);
            $title = str_replace($srcharr, $replarr, htmlentities($postinfo_obj->post_title, ENT_COMPAT, 'UTF-8'));
     $link = '<a href="'.$plink.'">'.$title.'</a>';
    
            $html = str_replace($link,$title,$html);
        }
    
    return $html;
    }
    add_filter('geodir_custom_infowindow_html','my_remove_bubble_title',10,3);

    Is there a similar code/possibilty to remove the link from the background image / geodir_bubble_image?

    I found this hint as well (https://wpgeodirectory.com/support/reply/200954/), but i am not sure how to (alternatively) disable all links from the “bubble”…

    Thank You in advanced for your support!
    Benjamin

    #375977

    Kor
    Moderator
    Post count: 16516

    Hi Benjamin,

    Have you tried using custom CSS and see if it works?

    
    
    .geodir-bubble_image .geodir_thumbnail {
        pointer-events: none;
        cursor: default;
    }

    Thanks!

    #376036

    bennyb
    Expired Member
    Post count: 19

    Kor, hm, thank you.

    Never did this before, probably pure CSS3, but works for me, great.

    Thank You, issue resolved for now 🙂 Cheers, Benjamin

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount