Boxed display displaying weird?
-
Hi, I am having the strangest problem. I have defined a custom author box and am using it on a variety of pages/posts with the exact same shortcode.
However, it was displaying weird in 2 50% width columns, apparently because of a CSS flex setting. The author avatar was way over on the left, and the name/description was way over on the right, separated by a large white space. If I used custom CSS to eliminate the flex: 1 style (setting it either to flex: none or flex: 0.2), it displayed fine – though I had to use !important to make it work. BUT only on certain posts. On others, it’s separating again and it’s deferring to that CSS code that stipulates flex: 1 because it also has !important tag on it. So basically, on SOME posts, one !important tag is overriding the other… but not on ALL posts.
The thing is, I cannot for the life of me find this other !important CSS code anywhere. The developer console makes it look like it’s part of the inline CSS somewhere, but I didn’t put it in. I’ve scoured every author box setting and custom CSS, and I’ve combed through & searched the default plugin CSS files and cannot find it anywhere.
So my questions are:
- Why does the same shortcode display one way on some posts and another way on other posts?
- Where is this mystery CSS that is overriding my custom CSS? Specifically I am looking for this: .pp-multiple-authors-layout-boxed ul li > div:nth-child(1) { flex: 1 !important; }
- If the flex: 1 is needed, how else can I get the box to stop giving 50% of the space to the tiny avatar, and put the name/description next to the avatar instead?
For reference, I tried using the default Boxed layout as well and am having the same problem, with the avatar sitting left and the description way over on the right. It does not look like the examples on your website. It seems like this can’t be a plugin conflict if the CSS code causing it display that way has your plugin name in it.
Any ideas? Thank you!
The topic ‘Boxed display displaying weird?’ is closed to new replies.