Consistent 'Read More' button and styling for manual post excerpts
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
Inizia individuando il rendering degli estratti dell’archivio del blog di Neve e le impostazioni di Customizer per Excerpt Length e il pulsante Read More. Confronta l’output dell’archivio per gli articoli con estratti manuali con quello degli estratti generati automaticamente, quindi verifica che gli estratti manuali ricevano il pulsante configurato e il comportamento di troncamento concordato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Impact: 60 · Confidence: 95 · Complexity: 40
Description
Problem
Currently, Neve's Customizer settings for "Excerpt Length" and the "Read More" button only apply to auto-generated excerpts. Posts that use manually written excerpts bypass these settings because native WordPress outputs manual excerpts exactly as written without the excerpt_more string. This causes an inconsistent user interface on blog archives, as posts with manual excerpts skip the excerpt length limits and are missing the "Read More" call to action.
Desired Behavior
The Customizer's "Read More" button and excerpt styling should apply uniformly to all posts on the archive page, regardless of whether the excerpt was auto-generated from content or manually entered.
Acceptance Criteria
- Detect cases where a manual excerpt is being used on an archive layout (
has_excerpt()). - Ensure the theme-configured "Read More" button is successfully appended to custom manual excerpts.
- Enhance excerpt output to gracefully handle trimming manual excerpts when they exceed the Customizer Excerpt Length (or provide clear logic separating visual read more buttons from strict truncation).
Customer Context
The customer is a business plan user complaining that their blog archive has an inconsistent layout. Posts where they have specifically added a manual custom excerpt do not get truncated according to the Customizer settings, and they are completely missing the 'Read More' button, breaking the archive's visual consistency.
Root Cause Analysis
The root cause is a gap between WordPress's native excerpt behavior and user expectation for theme settings. WordPress's the_excerpt() naturally outputs custom (manual) excerpts as absolute, ignoring excerpt_length limitations and failing to trigger the excerpt_more filters (which usually add 'Read More' buttons). The user expects the theme Customizer's excerpt settings to govern ALL archive outputs blindly, leading to frustration when manual excerpts render inconsistently against auto-generated ones.
Alternative Suggestions
Instead of adding a new feature, update the existing blog archive rendering logic to better handle has_excerpt(). The logic should automatically append the Customizer's 'Read More' button HTML to manual excerpts so that the call-to-action is visually consistent across all posts. Additionally, consider introducing a toggle to enforce the Customizer excerpt length limit on manual excerpts as well, unifying the archive layout without removing the user's ability to input manual text.
Reasoning
The issue is caused by standard WordPress behavior where manual excerpts bypass length truncation and the 'excerpt_more' filter used for the 'Read More' button. Since this results in an inconsistent archive layout, we don't need to build a net-new feature, but rather improve existing archive rendering logic so that Customizer 'Read More' and length settings apply consistently to both auto and manual excerpts.
Source: HelpScout #3340953321
Generated by feature-request-triage workflow (ID: feature-request-triage_6a1dc8bd7fed15.02128843)
- Lingua principale
- PHP
- Stelle
- 307
- Fork
- 89
- Merge medio
- 2g 20h
- PR unite (30g)
- 24
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Codeinwp/neve
-
bug-report bug-report-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
bug-report bug-report-triage crash-report
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Duplicate H1: hidden screen-reader title H1 rendered alongside custom layout H1 when page title is hiddenForse già presa @HardeepAsrani l’ha presa 17 giorni fa. Apertabug-report bug-report-triage customer report
Difficoltà 4/5 1-2 giorni Idoneità per principianti 48/100
Codeinwp/neve#4652 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Enhance home screen and front page customization options in Neve FreeForse già presa @faisalahammad l’ha presa 9 giorni fa. Apertafeature-request-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
Add basic Social Icons component to free Header and Footer builderForse già presa @faisalahammad l’ha presa 9 giorni fa. Apertafeature-request-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Codeinwp/neve
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
CMS video element: "CmsVideoPlugin" sets `volume = 0`, so videos cannot be unmuted on Android ChromeApertaneeds-triage Platform(Default)
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
GD decoder discards the finfo media type in mediaTypeByBinary() since 4.4.0Forse già presa @lazerg l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
Intervention/image#1556 ·
I maintainer di solito rispondono entro 1 giorno
-
bug No Code Attached Yet
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
joomla/joomla-cms#48730 ·
I maintainer di solito rispondono entro 1 giorno
-
[Sync EN] Add more details about the array returned from openssl_x509_parse (php#2666) (#6013)Apertasync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno