New Landing How can we help? Themeforest Theme Support Dante Using Custom JS to remove click behavior on Team page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #166250
    lucasbracher
    Member
    Post count: 8

    Hi there!

    I would like to remove the onclick behavior on team persons, i.e., I would like to get rid of the links to the people’s page.

    I run a jQuery line code on Firebug that does that for me and works fine:

    jQuery("li").find(".gallery-style").find("a").contents().unwrap();

    The problem is I put that on Custom JS section, but it doesn’t work. Is that something I’m missing?

    Thank you!

    Lucas Bracher.

    #166274
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You can add this to your custom css:

    .team-member figure.gallery-style {
      pointer-events: none;
    }

    – Kyle

    #166472
    lucasbracher
    Member
    Post count: 8

    Hi, Kyle. It doesn’t solve the problem since I lost the animation between figcaption and img. I tried that, but I still need the onHover event.

    The URL follows: http://www.mktrix.com.br/pessoas/

    The JS solution I presented solves the problem, but I couldn’t put it running on site, but I can run it on JS console. Could I run it on Custom JS?

    Thank you!

    Lucas Bracher.

    #166473
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Use this css:

    .team-member figure.gallery-style a {
      pointer-events: none;
    }

    It’s better to use CSS than JS as it’s easier for the browser

    – Kyle

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register