change post entry-content position, not home page excerpt

  • Unknown's avatar

    Hello!

    I’m using the Sight Theme and as Justpi has told me on another topic, this theme does not differentiate .entry-content changes. When I change the text position of a certain post, the excerpt on .home and .archive also changes.

    The code I’m using is:

    .post-128 .entry-content {
    	margin-left: 130px;
    	margin-right: 100px;
    	width: 90%;
    }
    
    .post-128 .entry-title {
    	text-align: center;
    	padding-left: 150px;
    	padding-top: 30px;
    }
    
    .post-128 .entry-meta {
    	display: none;
    }

    I wrote it particularly for this -128 post because I want you guys to see the difference. All posts, except TESTE UM, look alright in the home page. My wish is to generalize the entry.content post position to all posts. I know that writing only .entry-… I can do it.

    But how can I restrict the changes to post’s entries and not excerpts?

    Regarding the actual post, is it possible to prolong the two lines separating (cinema/inverso), (teste – um) – and the text content? In such a way that the lines are the same size as the menu-principal-container one?

    Thanks a lot guys :)

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hey! I’ve already figured out the .home /.archive issue.

    Does anyone know how to make the lines that separate the .entry-header (post title), and .entry-category (category/subcategory) longer? I’d like to make them equivalent to the menu. Is it possible to change that?

    Also, how can I set a .entry-content ONLY to a specific post? The way I know is writing .home and .archive to a code and overriding the .entry-content. But is there an opposite way? To make it valid only to the post I want to?

    Thanks! :)

  • Unknown's avatar

    This will take the post title bottom border line full width.

    .entry-header {
        width: 940px;
    }

    To target specific pages or posts, you use the post or page ID body class which you can find viewing the page source code and looking in the opening body selector. In the case of your Teste – Seis post, that would be postid-312 and for your Editores page it would be page-id-449, so you would precede any selector with that such as in the following example.

    .postid-312 .entry-content {
    background-color: #CC0000;
    }
  • Unknown's avatar

    Thanks a lot!

    Now I’m trying to hide the .entry-header (entry-title) border-bottom line. When I change the CSS relative to the .entry-header the .entry-categories border-bottom line also disappears.

    See for instance Teste – Seis post. The entry-content has two top-borders…

  • Unknown's avatar

    If you mean you don’t want that border when you view a single post or a static page, add this:
    body.single .entry-header, body.page .entry-header, body.attachment.entry-header {
    border: 0 none;
    }`

  • Unknown's avatar

    That was perfect! Thanks again justpi!

  • Unknown's avatar

    You’re welcome!

  • The topic ‘change post entry-content position, not home page excerpt’ is closed to new replies.