Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #316897
    ujesko
    Participant

    I want to hide my post titles and show only on hover. How to do? Any ideas? 🙂 http://staging.jesiorkowski.de/

    #316901
    tikaram
    Keymaster

    @ujesko : I will check the issue and get back to you soon.

    Regards,
    Tikaram

    #316904
    Sakin
    Keymaster

    @ujesko: Can you try adding the following CSS in the “Appearance => Customize => Additional CSS” box:

    @media screen and (min-width: 48em) {
    	.featured-content-wrapper .entry-header {
    		visibility: hidden;
    	}
    
    	.featured-content-wrapper .hentry:hover .entry-header,
    	.featured-content-wrapper .hentry:focus .entry-header {
    		visibility: visible;
    	}
    }
    #316905
    ujesko
    Participant

    Great, many thanks, Sakin! 🙂  And one more request. How can I hide title and wrapper on mobile?

    #316917
    Sakin
    Keymaster

    @ujesko: It is not a good user experience to hide the title and wrapper on the mobile. But if you want to do that then remove the old CSS I gave you earlier and add the following CSS instead:

    .featured-content-wrapper .entry-header {
        visibility: hidden;
    }
    
    .featured-content-wrapper .hentry:hover .entry-header,
    .featured-content-wrapper .hentry:focus .entry-header {
        visibility: visible;
    }
    #316921
    ujesko
    Participant

    Many thanks again for your efforts, Sakin! With your CSS the wrapper are still visible on mobile. Is it possible to get the following result? http://working.jesiorkovski.de/Screenshot

    #316986
    Sakin
    Keymaster

    @ujesko: Ok then add the following CSS:

    .featured-content-wrapper .hentry {
    	display: block;
    }
    .featured-content-wrapper .post-thumbnail,
    .featured-content-wrapper .entry-header {
    	display: block;
    	position: relative;
    	width: 100%;
    }
    .featured-content-wrapper .entry-header {
    	width: 100%;
    	position: absolute;
    	top: 30%;
    	left: 0;
    	right: 0;
    	padding: 35px;
    	-webkit-transform: translateY(-30%);
    	-moz-transform: translateY(-30%);
    	-ms-transform: translateY(-30%);
    	-o-transform: translateY(-30%);
    	transform: translateY(-30%);
    	background-color: rgba(0, 0, 0, 0.25);
    	text-align: left;
    }
    .featured-content-wrapper .hentry:nth-child(2n) .post-thumbnail {
    	left: auto;
    }
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Show post title on hover’ is closed to new replies.