TT2 blocktheme – content justification over-ridden by theme
-
Hi all, apologies if this has been asked before, but I’m trying to figure out why certain page elements don’t respond to justify via custom css.
It seems there is a style setting somewhere that dictates certain elements are always left-justified, regardless of custom css.
I’m working on a localhost site so don’t have a live link to share, but for example:
I can set .wp-site-blocks { max-width: 1200px; } via custom css
but ‘margin: auto;’ in the same css rule has no effect and the entire page remains left-justified in the browseror..
I have a block of custom HTML containing a css/js animation of a sound-wave,
I can set .sound-wave { justify-content: center; } and this places the animation in the center of the div,
but, the div itself containing the content remains left-justified, or if I set the property ‘margin: auto’ to the div (via a css class defined in the custom HTML), it actually disappears entirely!I read on github that this sort of thing is a “bug” which still hasn’t been fixed.
However, I just thought I’d ask here in case anyone can suggest any work-arounds or whether there’s anything I can change in the theme.json (I’ve had a look but can’t see anything relevant at first glance.).
- The topic ‘TT2 blocktheme – content justification over-ridden by theme’ is closed to new replies.