Okay
  Public Ticket #1486739
Remove link from post featured image
Closed

Comments

  •  11
    signeralex started the conversation

    Hello. Is it possible to remove the link on the featured image of a post? See for example here: https://beige.company/kengo-kuma-architect/ - I don't need that image to be clickable.

    Thanks! Alex

  •  1,560
    Laborator replied

    Hi there,

    Adding this CSS to Custom CSS will make the image un-clickable:

    .single-post .post-image a.featured-image {
        pointer-events: none;
    }
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  11
    signeralex replied

    Thanks, that works. I was hoping this will remove the following error in the code I'm seeing in Chrome:

    jquery.fluidbox.min.js:1 Fluidbox: The jQuery debounce/throttle plugin is not found/loaded. Even though Fluidbox works without it, the window resize event will fire extremely rapidly in browsers, resulting in significant degradation in performance upon viewport resize.
    (anonymous) @ jquery.fluidbox.min.js:1

    It doesn't seem to affect the site, but I'd still love to get rid of it. There was someone else with the same issue here: https://laborator.ticksy.com//ticket/1316572/ but  believe the answer was private.

    Thanks! Alex


  •  1,560
    Laborator replied

    Hi Alex,

    There is not any error in the console, that is a warning which does not affect the functionality of the theme, anyway we have added this code to functions.php file of Kalium and it doesn't show anymore now:

    // Fix debounce throttle warning
    function add_debounce_throttle_support() {
        
        if ( is_singular() ) {
            
            ?>
            <script type="text/javascript">(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);</script>
            <?php
        }
    }
    add_action( 'wp_head', 'add_debounce_throttle_support', 1000 );-->
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group