WordPress.org

Support

Support » Themes and Templates » [Resolved] Remove/Hide sticky post title and date?

[Resolved] Remove/Hide sticky post title and date?

  • Nicole
    Member

    @nevaratoiel

    I’ve been looking everywhere, but I can’t find anything in any file of the Untitled theme that’s related to sticky posts. The only reference is in the style css file but I don’t know what to change.

    I would like the to remove/hide the post title and date of the sticky post.

    Where do I look and what do I change?

Viewing 5 replies - 1 through 5 (of 5 total)
  • ellp
    Participant

    @ellp

    Hello!

    You can use css to hide the post title and the date, hide all the sticky post.

    Can you send the link of your site? It will be easier to help you.

    Nicole
    Member

    @nevaratoiel

    http://gambit.elfae.com/

    The “UPDATES” post is sticky.

    Here some css that has .sticky in it. I just can’t find it in the source code of any of the pages or .js files…

    .post-index .sticky {
    }
    
    #main .format-video .single-thumbnail a:after,
    #main .format-standard .single-thumbnail a:after,
    #main .format-image .single-thumbnail a:after,
    #main .format-gallery .single-thumbnail a:after,
    #main .format-quote .single-thumbnail a:after,
    #main .sticky .single-thumbnail a:after,
    #main .format-status .single-thumbnail a:after,
    #main .format-audio .single-thumbnail a:after,
    #main .format-aside .single-thumbnail a:after{
    	font-family: "genericons", sans-serif;
    	margin-left: -35px;
    	position: absolute;
    	left: 50%;
    	top: 25%;
    	font-size: 60px;
    	color: #fff;
    	opacity: 0.7;
    	}
    
    #main .sticky .single-thumbnail a:after{
    	content: '\f308';
    	}
    
    @media screen and (max-width : 550px) {
    	#main .format-video .single-thumbnail a:after,
    	#main .format-standard .single-thumbnail a:after,
    	#main .format-image .single-thumbnail a:after,
    	#main .format-gallery .single-thumbnail a:after,
    	#main .format-quote .single-thumbnail a:after,
    	#main .sticky .single-thumbnail a:after,
    	#main .format-status .single-thumbnail a:after,
    	#main .format-audio .single-thumbnail a:after,
    	#main .format-aside .single-thumbnail a:after {
    		left: 54%;
    		top: 18%;
    		font-size: 50px;
    		color: #fff;
    	}
    
    	.minislides{
    		display:none;
    		}
    	#main .format-video .single-thumbnail a:after,
    	#main .format-standard .single-thumbnail a:after,
    	#main .format-image .single-thumbnail a:after,
    	#main .format-gallery .single-thumbnail a:after,
    	#main .format-quote .single-thumbnail a:after,
    	#main .sticky .single-thumbnail a:after,
    	#main .format-status .single-thumbnail a:after,
    	#main .format-audio .single-thumbnail a:after,
    	#main .format-aside .single-thumbnail a:after {
    		left: 60%;
    		top: 15%;
    		font-size: 50px;
    		color: #fff;
    	}
    
    @media screen and (max-width : 320px) {
    	#main .format-video .single-thumbnail a:after,
    	#main .format-standard .single-thumbnail a:after,
    	#main .format-image .single-thumbnail a:after,
    	#main .format-gallery .single-thumbnail a:after,
    	#main .format-quote .single-thumbnail a:after,
    	#main .sticky .single-thumbnail a:after,
    	#main .format-status .single-thumbnail a:after,
    	#main .format-audio .single-thumbnail a:after,
    	#main .format-aside .single-thumbnail a:after {
    		left: 60%;
    		top: 3%;
    		font-size: 50px;
    		color: #fff;
    	}
    clark.nick
    Member

    @clarknick

    .sticky .entry-header {display: none;}
    .sticky .entry-meta {display: none;}

    I’m assuming that you’re wanting to hide the “updates” and the “date” below.

    WPyogi
    Forum Moderator

    @wpyogi

    Make sure that any changes are made in a Child Theme or custom CSS (use a plugin if your theme does not have it as an option) – otherwise they will be lost when the theme is updated.

    Nicole
    Member

    @nevaratoiel

    @clark.nick: Thank you very much! Works like a charm.

    @wpyogi: Yup. I’m not the most experienced WP user, but after losing my editing once after an update, I know the pain of having to do it all over. Thanks for the reminder.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Remove/Hide sticky post title and date?’ is closed to new replies.