amnestywebsite / humanity-theme

The Amnesty International WordPress Humanity Theme
https://wordpresstheme.amnesty.org/
Other
38 stars 10 forks source link

Adds a specific font size to override the default h1 #463

Closed Gentyspun closed 3 weeks ago

Gentyspun commented 3 weeks ago

Ref: https://github.com/amnestywebsite/amnesty-wp-theme/issues/2989

Adds specific font size styles to the article title to override the default h1 font size

Steps to test:

  1. Edit a post
  2. Add a post title
  3. Save and view the front end
  4. Post title should be 52px on viewpoints => 760px and 32px < 760px

Example: http://bigbite.im/i/6pco9U

Gentyspun commented 3 weeks ago

Font sizes are now provided by theme.json. please either define this in theme.json or use a css var. e.g.

Ahh of course, my bad.

Changed the PR to register a new fontSize in theme.json and then use that in base.scss for the article title