Support » Theme: Scrawl » Having the Archive page show only excerpts?

  • Resolved rfwrites

    (@rfwrites)


    Hi,

    Love the Scrawl theme! It’s great! So clean and streamlined 🙂

    I was just wondering whether there’s some way to change it so that the Archive page shows just an excerpt of each post (or, if not, just the post title) instead of showing the whole post itself?

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Without having to create a child theme and modifying the code itself, you could use the following CSS in Appearance->Customize->Additional CSS to hide the post content

    .paged .post .entry-content {
    	display: none;
    }

    Really appreciate you trying to help me 🙂

    Unfortunately, I have copy-and-pasted that code into the Additional CSS box and pressed ‘Publish’, but it has made no difference to how my Archive pages display…

    @rfwrites

    Can you tell me which site you’re working on. I can test the code in my browser on the actual site to see if it works properly.

    Sure thing.

    The site is: ryanfinchwrites.com

    And obviously the archive pages can be found via the slide-out menu.

    Thanks –

    Ok. Adding this CSS to the archives page is going to leave you with only post titles.

    .entry-content {
    display: none;
    }

    I tested this on the live site at http://ryanfinchwrites.com/2019/03/

    Hi there,

    I just want to suggest an alternative:

    This theme does not display post excerpts, but WordPress comes with a built-in feature called the Read More tag. If you add that in a post, only the text above that tag will display on your site’s posts page and on archive pages, with a link a visitor has to click to see the full post. This is a core feature, and should work on any theme, including Scrawl.

    To use the tag, edit a post and insert a new block at the point you want the excerpt to cut off, type /more, and select the block from the list. You’ll have to do this manually for each post that you only want to show an excerpt.

    .entry-content {
    display: none;
    }

    I tested this on the live site at http://ryanfinchwrites.com/2019/03/

    Just to add – if the CSS above is used, it would hide all content on every page and post on the site.

    To limit it to posts on archive pages, it’d need to be changed to:

    .archive .post .entry-content {
    display: none;
    }

    Good catch, thanks, Gary. I completely missed that!

    Many thanks to you all for trying to help me! What an awesome support community 😀

    I added the revised code snippet that @gary-barrett provided into the ‘Additional CSS’ box and it worked perfectly. My archive pages now only display clickable titles for each post. Which gives them the easier-to-browse feel I was hoping for.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Having the Archive page show only excerpts?’ is closed to new replies.