Okay
  Public Ticket #2210760
Meta Display on different viewport
Closed

Comments

  • mimiron started the conversation

    Hi there,

    Would like to find out if its possible to do like.

    The post's meta will display on hover on desktop but will always be shown on tablet and mobile?

  •  675
    Neuron replied

    Hi,

    You can do this on two different ways, create two sections one with active hover and one without.

    - Video URL

    The other one is via Custom jQuery, install the following plugin which will allow you to add Custom JavaScript.

    https://wordpress.org/plugins/insert-headers-and-footers/

    Then go to Settings > Insert Headers and Footer and add the following script.

    <script>
    jQuery(function($) {
        if ($(window).width() < 960) {
            $('.o-neuron-hover-holder').addClass('o-neuron-hover-holder--active');
        }
    });
    </script>

    960 represents the width of screen, you can change that to any number.

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • mimiron replied

    Hey thanks for the help, I got it working via the "two sections" method :)

  •  675
    Neuron replied

    Good to know, feel free to ask for anything you needsmile.png

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.