I'm using Afterlight Tribute with a background image (test site: https://ef.ponderworthy.com ) which is perfect for the home page. But the rest of the site will be Pages, which need to have large multiline text and image articles, black text on on white background in a large box, instead of the central white large text and subtitle. How can this best be done? I have spent a good bit of time flipping through everything and testing, and it looks like I have to edit CSS somewhere, but where? Is there a simple way to assign CSS to a custom field type?
Comments
Hi Jonathan,
It sounds like you just want to add some CSS to override the styling of all-but-the-front pages. According to the Afterlight documentation, you can add custom CSS to
css/your-custom.css
:In order to affect all-but-the-front pages, use something like this:
There'll likely be more you need to do, but hopefully that gets you started.
Tried it in a few ways. When applied precisely as recommended, you can see the white background flash, then the image comes up. I also tried it this way:
but no change occurred, the background image was superimposed.
I really don't want to get rid of the background image at the page (body tag) level though, I'd like to set this at the level of a multiline+image text field. I'll be happy to read lots of docs and try things, but I have not found the docs needed.
In that case, try this:
That produces the following for me:
I guess, instead of
body:not(.front)
you needhtml body:not(.front)
. The theme's CSS according to my browser's inspector is:Got it and working so far, with the "html body" approach. Thanks!
Thank you very much, Olafski, and BWP. One more item, if I may presume further; I'd like to change the default CSS applied to the <P> elements which CKEditor is creating. The current view is here:
http://ef.ponderworthy.com/short-version
The overall generated code of the area is
So we now have the the "field-name-body" nicely under control, but I'd like to change the margins for all of those <P>'s, to make it all very neat. How best?