• Resolved tbucks11

    (@tbucks11)


    Posted this 3 months ago, someone helped me, but I just realised that the code was missing something and that for all this time, when visitors clicked on the image, it went to a page with the image itself instead of going to the link:

    Hi guys,

    I haven’t opened my website and wordpress interface in a while. I’m currently trying to add two icons to one of my pages https://thais-breton.com/personal-work/
    They are not doing the same thing as the other icons from other pages do, even though I copied the codes from these other icons. The second icon is not lighting up to its total opacity (words are a bit faded) and the first one is doing the right thing but in the wrong order (should be image first, then when the mouse goes on top we see the text)

    Thank you in advance for your help!

    Here is what I did:

    <div>
    <div style="width: 32%; margin-left: 2%; float: left;">
    <div id="cf" style="width: 100%; float: left;">
    
    <img class="top" src="https://thais-breton.com/wp-content/uploads/2015/01/voyage0.jpg" alt="voyage0" width="390" height="219" class="bottom" />
    
    <a href="https://thais-breton.com/le-voyage/"><img src="https://thais-breton.com/wp-content/uploads/2015/01/voyage1-1.jpg" alt="voyage1" width="390" height="219" class="top" /></a>
    
    </div>
    </div>
    <div style="width: 32%; margin-left: 2%; float: left;">
    <div id="cf" style="width: 100%; float: left;">
    
    <a href="https://thais-breton.com/palettewoody"><img src="https://thais-breton.com/wp-content/uploads/2015/01/pw1-1.jpg" alt="pw1" width="390" height="219" class="top" /></a>
    
    <a href="https://thais-breton.com/palettewoody"><img src="https://thais-breton.com/wp-content/uploads/2015/01/pw0-1.jpg" alt="pw0" width="390" height="219" class="bottom" /></a>
    
    </div>
    </div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you also show us a page where the image effect is working correctly?

    Thread Starter tbucks11

    (@tbucks11)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you got the images the wrong way around? E.g. try this:

    <div style="width: 32%; margin-left: 2%; float: left;">
    <div id="cf" style="width: 100%; float: left;">
    
    <img src="https://thais-breton.com/wp-content/uploads/2015/01/voyage1-1.jpg" alt="voyage1" width="390" height="219" class="top" />
    
    <a href="https://thais-breton.com/le-voyage/">
    
    <img class="top" src="https://thais-breton.com/wp-content/uploads/2015/01/voyage0.jpg" alt="voyage0" width="390" height="219" class="bottom" />
    </a>
    
    </div>
    </div>

    Thread Starter tbucks11

    (@tbucks11)

    That did it Andrew. I don’t know a thing about coding and just doing these things blindly and I’m really trying to use my logic but logic doesn’t always seem to be enough!
    Thank you so much for your help ?? Good evening to you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding an image with an effect on a page’ is closed to new replies.