TW Config Custom Variations Not Working on Pages #205
-
|
I am setting custom values for --tw-prose-headings and --tw-prose-links in the typography config for the WP theme. They are working in the WP editor and in posts on the frontend but they are not working on pages on the frontend. If I edit them under DEFAULT CSS they work in posts and pages. Anybody else experiencing this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Hi Sam—Thanks for posting this! I'm just trying to wrap my head around exactly what's happening. Is the baseline that Tailwind Typography works everywhere, but the modifications in |
Beta Was this translation helpful? Give feedback.
-
|
That is correct. The modifications under theme don’t work on pages, if you add them under the default css they do work on pages.
On Jul 31, 2025, at 3:51 PM, Greg Sullivan ***@***.***> wrote:
Hi Sam—Thanks for posting this!
I'm just trying to wrap my head around exactly what's happening. Is the baseline that Tailwind Typography works everywhere, but the modifications in tailwind-typography.config.js don't work on pages, while working everywhere else?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
User error. I'm creating custom pages, for example page-mypage.php and I'm not wrapping the content with:
<?php theme_content_class( 'page-content' ); ?>Sorry for wasting your time.