Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1210011

    Hi there,

    I have added an iamge (with link) on the end of every blogpost on my site. See an example here:

    https://www.der-prinz.de/perspektivische-verzerrung-hat-nichts-mit-der-brennweite-zu-tun-objektivkompression-auch-nicht/

    You will also recognize the image at the end disappears once you move over it with the mouse. I have no clue why this happens because there is no CSS set for this image. It happens only if the image is inside an a tag. When it´s not inside an a tag it stays even when I hover it.

    This code is used at the end of loop-single.php

    
    <?php if(is_single()) { ?>
    
    	<div class="abbinder">
    		<a href="https://michaeloeser.de/fotografieren-lernen-kompakt/" target="_blank">
    			<img src="https://www.der-prinz.de/wp-content/uploads/2020/05/fotokompakt-1.jpeg">
    		</a>
    	</div>
    
    <?php } ?>

    Any suggestions?

    Cheers
    Michael

    • This topic was modified 4 years, 6 months ago by Michael Oeser.
    #1211375

    Hey Michael,
    Sorry for the late reply, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .abbinder a {
    	    width: 100% !important; 
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1211389

    Brilliant, Mike. It works.

    Another quick question: Any idea why my YouTube videos don´t show as videos but as text-only links
    Example: https://www.der-prinz.de/eos-rp-meine-bisher-optimale-buttonbelegung/

    This used to work flawlessly some wweks ago bit suddenly it doesn´t anymore. When I go into the post edit mode and re-enter the Youtube link it suddenly works like so: https://www.der-prinz.de/5-dinge-die-du-fuer-die-eos-m50-unbedingt-haben-musst/

    Any idea?

    #1211451

    Hi,
    As I understand, you are posting the YouTube link into a post directly, and sometimes it doesn’t change into a video element. This is a native WordPress function and in my tests on a new install it seems to work correctly, so I would recommend disabling all plugins and then try enabling one at a time, to recreate the error. Also are you hitting the [return] key after the video URL? Try a regular space first then a [return] key. Are you editing in the “visual” or “text” tab?

    Best regards,
    Mike

    #1211605

    I will check. Thanks.

    Topic can be closed

    #1211618

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Image disappearing on mouseover’ is closed to new replies.