Okay
  Public Ticket #2122082
Media Gallery
Closed

Comments

  • hosenschlange started the conversation

    I created a page based on the Photography Studio Template. Is it possible to add a custom hover color the images? The hover style is only globally editable. 

  •  675
    Neuron replied

    Hi,

    Have you tried the background option which is located under the style tab.

    - http://prntscr.com/ov6r7a

    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.

  • hosenschlange replied

    Hi,

    i have seen that option. But that option is for all images in the gallery. They would have the same background-color on hover.

    I would like to have a different color for every image or at least a few different colors. is this achievable?

    Best regards

  •  675
    Neuron replied

    Hi,

    Ah alright, I thought you want to change the color for all the posts.

    It's quite easy. I will list the steps below.

    1. Add a custom class to the element or section that contains the posts element. http://prntscr.com/oumod2
    2. Go to Appearance > Customize > Additional CSS and add the following style for each item.
    .custom-colors .selector:nth-child(1) .o-neuron-hover-holder__header__overlay {
      background-color: red !important;
    }
    .custom-colors .selector:nth-child(2) .o-neuron-hover-holder__header__overlay {
      background-color: blue !important;
    }

    Check the nth-child(1) and 2, the number represent the item in order.

    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.

  • hosenschlange replied

    Hi,

    that is unfortunately not possible in this case. The website owner is not a web developer and will not able to edit the css by himself. The media gallery will change regularly and the hover-color should match the background color of the image. I thought maybe there is a way to add a custom field to the content section to enter a class to each image like in the advanced section. Maybe the Badge option? 

    best regards



  •  675
    Neuron replied

    I can add a simple option to each repeater to change the background color, simply provide me with your wp-admin. Make sure to tick private.

    Kind Regards


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