• Can someone help me create a custom css that will allow me to keep everything about the featured pages icons but will disable the link that takes you to the pages themselves. I want the graphics with zoom i don’t want them to link anywhere.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try using this Snippet.

    Instead of using
    2 => 'http://www.my-custom-url-one.com',
    try
    2 => '#',

    Thread Starter GoGoMyYoYo

    (@gogomyyoyo)

    This snippet did not work for me. Do you or anyone else have another suggestion to help me remove the links from my featured pages?

    Hi,
    Try adding this to the adding this to the CSS class of the icons in your child-theme.

    pointer-events: none;
    cursor: default;

    Hi,

    Please use the following codes in your functions.php

    add_action('wp_head','custom_disable_link');
    function custom_disable_link(){
    echo"<script>
    jQuery(document).ready(function(){
    jQuery('.marketing a').click(function(event){
        event.preventDefault();
    });
    });
    </script>";
    }

    The javascript will “disable” the clicks in your featured pages.
    It does not hide the button. To do that, you will need to apply the following Custom CSS. Go to Appearance -> Customize -> Advance Options -> Custom CSS

    .marketing .btn{
    display:none !important;
    }

    I have tested and confirm that it works on my localhost Customizr theme frontpage.

    Hope this helps!

    Thanks!

    Hi Denzel – I tried using your code but it’s still showing links for me on the featured pages. I want to use the featured pages section as a “How it works” with 3 static images and explanations below. My site is sweatnco.com. Can you please tell me what I’m doing wrong? Thanks for your help!

    Please post a link to your site

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘disabling the featured pages link’ is closed to new replies.