• Hello and thanks for a great theme.

    I have one problem though, it is when using the excerpt function.
    I get either one or two problems with this.

    1. When I set the theme to use excerpts, it does not use the excerpt I write within the excerpt field while writing a post. It just adds the first four lines and adds a “continue reading” button. It also doesn’t follow the formatting such as H1, H2, H3, and does not include space between the H3 and the following text which makes it look quite bad.

    2. If I do not write a specific excerpt in the excerpt field, it does just the same as described in point 1.

    3. If I however put in a read more wherever I want to, it only shows the selected text that I wanted. But it does not add a read more button, which makes accessing the post impossible.

    How can I fix this? The only thing I want is for the excerpt field to function, as I usually write my own short excerpts.

    Also how can I change the text of Continue reading to Les mer (Norwegian)?

    Please help me with these issues.

    Best regards
    Orlando

    The blog I need help with is owlando.com.

    • This topic was modified 7 years, 1 month ago by James Huff. Reason: removed modlook tag

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Hi there, quick note, I removed the modlook tag that you added.

    The modlook tag is for getting the attention of moderators, not for getting quicker help. It’s the kind of attention you really don’t want unless you really do need a moderator.

    So, please don’t do that again.

    If someone who knows the theme can help you, they will reply. Everyone here is a volunteer, including the moderators, so people will reply when (and if) they are able to.

    Siobhan

    (@siobhyb)

    Hi Orlando,

    By default, it’s expected for HTML to be stripped from any automatically created excerpts by WordPress. You have two options for working around this default behaviour:

    1. Manually enter the text, including any HTML, that you want to be displayed in the post’s custom excerpt field.

    2. If you’re fairly comfortable with HTML and PHP, you could consider setting up a child theme and then creating a custom excerpt function that allows HTML. The following thread on StackExchange includes a comprehensive overview on excerpts and the code you’d need to add:

    https://wordpress.stackexchange.com/questions/141125/allow-html-in-excerpt

    Also how can I change the text of Continue reading to Les mer (Norwegian)?

    You can find Penscratch’s GlotPress (a tool we use to enable anyone to contribute translations to WordPress) project here:

    https://translate.www.ads-software.com/projects/wp-themes/penscratch

    Further guidance on contributing translations to WordPress can be found in the GlotPress handbook:

    https://make.www.ads-software.com/polyglots/handbook/tools/glotpress-translate-wordpress-org/

    Hope that’s helpful! Let me know if you have any extra questions around the above.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Penscratch 2 – Excerpts problems’ is closed to new replies.