Skip to content

[codex] Fix WordPress guide styling - #100

Merged
bisonbet merged 1 commit into
mainfrom
v2.1-doc-wordpress-format
Jul 6, 2026
Merged

[codex] Fix WordPress guide styling#100
bisonbet merged 1 commit into
mainfrom
v2.1-doc-wordpress-format

Conversation

@bisonbet

@bisonbet bisonbet commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Compact the WordPress guide <style> block into a single continuous CSS block so WordPress auto-paragraph formatting does not inject </p><p> into the stylesheet.
  • Add a short maintainer note explaining why the CSS must stay compact when pasted into WordPress.
  • Add the .singular .entry-header selector to the existing Twenty Twenty page-title hiding rule.

Diagnosis

The live page at https://www.bisonnetworking.com/bisonnotes-ai/ had the guide content, but WordPress inserted literal paragraph tags inside the <style> block. That caused the guide stylesheet to stop applying, so the Twenty Twenty theme controlled the page title, hero, heading sizes, cards, and callout formatting.

Validation

  • Inspected the hosted page in the browser and confirmed the live .bn wrapper existed while hero/heading/card styles were being overridden by the theme.
  • Confirmed the new local style tag has zero internal newlines, no <p>/</p> tags, and still contains the key .bn-hero, .bn h2, and .singular .entry-header rules.
  • Ran git diff --check.

No app build or Swift tests were run because this is a WordPress HTML documentation-only change.

Co-authored-by: OpenAI Codex <codex@openai.com>
Copilot AI review requested due to automatic review settings July 6, 2026 22:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the WordPress “BisonNotes AI” user guide HTML so its embedded stylesheet survives WordPress auto-paragraph formatting, restoring the intended guide layout and overriding the Twenty Twenty theme’s default title/header styling.

Changes:

  • Replaces the multi-line <style> block with a single compact/minified CSS line to avoid WordPress inserting paragraph tags inside the stylesheet.
  • Adds maintainer comments explaining why the CSS must remain compact for WordPress pasting.
  • Extends the Twenty Twenty title/header hiding rule to include the .singular .entry-header selector.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bisonbet
bisonbet marked this pull request as ready for review July 6, 2026 22:50
@bisonbet
bisonbet merged commit 1b6ca4d into main Jul 6, 2026
1 check passed
@bisonbet
bisonbet deleted the v2.1-doc-wordpress-format branch July 6, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants