Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Gardner

    (@jgardner03)

    Hi hulldini,

    Thanks for using my plugin. It definitely is possible to do what you’d like, though it is a bit involved. It also requires you have a pretty decent understanding of CSS.

    Start by looking here: http://stackoverflow.com/questions/18322548/black-transparent-overlay-on-image-hover-with-only-css

    That will show you the basics in how to target an image element and the necessary CSS to get a black overlay (note: when they reference .image in their code, replace it with .portfolio-image in yours). I understand you want grey, but first thing is to get the behavior working, then you can worry about changing the colors.

    To get the title to hide by default and then display on hover, you’ll have to target the .arconix-portfolio-title element.

    .arconix-portfolio-title { visibility: hidden; }
    
    .arconix-portfolio-grid li:hover .arconix-portfolio-title { visibility: visible; }

    That should get the title hidden by default but displaying when you hover over the image. All that’s left is repositioning the title so that it shows up inside the image block. Something like this should get you close:

    .arconix-portfolio-grid li { position: relative; }
    
    .arconix-portfolio-title { position: absolute; top 15px; left 5px; }

    Just a note — this is all code I wrote basically off the top of my head and I haven’t tested it. While I’m fairly certain the visibility and title positioning will work as we expect, I’m less sure of the rest of the code, so you may have to adjust it to get it working exactly how you want.

    May I also suggest before you embark in any changes that you copy the arconix-portfolio.css file from my plugin’s directory to the root of your theme’s folder. That way my plugin will load your file in place of mine and your changes won’t be overwritten when I release updates to the plugin.

    Thread Starter hulldini

    (@hulldini)

    Thanks for your help… I was able to get the visibility thing working but the positioning and the overlay is not working.

    When I look at the code in chrome I can’t find the class that you’re referring to (.portfolio-image). When I look through the plugin php file I can see it in there. I don’t know if there is something with my theme that is not working. It says the class for the image is (attachment-portfolio-thumb wp-post-image).

    With the positioning… The title still shows up below the image but only when I hoover over it.

    Any help with this would be much appreciated. The site i´m working on is

    http://www.hammarin.eu/projekt

    Thread Starter hulldini

    (@hulldini)

    I spoke to soon… Positioning resolved… I was using the shortcode below on the portfolio page…

    Plugin Author John Gardner

    (@jgardner03)

    Ah, because you’re linking to a page not the image… You can target the image that way (img.attachment-portfolio-thumb) or you can get to it .arconix-portfolio-grid li a which would be the container the image is located in.

    Thread Starter hulldini

    (@hulldini)

    Thanks… Works perfectly now… By the way… I have made a few changes to the main plugin file… Is there a way of making sure that those changes don’t get lost incase of an update?

    Plugin Author John Gardner

    (@jgardner03)

    What kind of changes did you make?

    If you edit the main plugin files there’s no way to keep them safe on an update… however there is a way to keep you from accidentally automatically updating the plugin from the backend and allow you to manually implement any changes yourself. In plugin.php look at the version info in the main comment block at the top. Change that to some large number like 14.0 and when WordPress compares that version against the latest in the respository, it won’t call for you to update the plugin.

    p.s. just an fyi, but version 1.4.0 (no release date yet, still working on it) will be a pretty substantial update in terms of file changes. You can see what I’m working on here: https://github.com/j-gardner/arconix-portfolio/tree/develop

    Thread Starter hulldini

    (@hulldini)

    Ok… Thanks for the tip…

    The main change I made was change the text string All to Kronologisk which means Cronological in swedish. There might have been a few other changes… Not shure… But I took your advise and changed the version number.

    Now I just need to figure out why the text fades with the opacity. I want the text to stand out above the “blurred” image. Not fade with it…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hoover overlay’ is closed to new replies.