Home › Forums › Weaver Xtreme Theme › Per-post css style not working
- This topic has 8 replies, 3 voices, and was last updated 11 years, 2 months ago by
scrambler.
-
AuthorPosts
-
June 21, 2015 at 09:14 UTC #17947
Tony_T
ParticipantHi
I’m running Weaver Xtreme on WordPress 4.2.2. I’m having a problem getting the per-post css to work. Please can you look at the two posts hereone with and one without per-post css. For the ‘with’ I have used the example from the Weaver help pages. If you open each post as a single post you’ll see there’s no difference in how they appear.It’s not a css conflict because if you look at the source code for the ‘with’ post you’ll see that the custom css hasn’t been written into the code (search for ‘yellow’). I’ve tried other css in the per-post style box but always with no effect.Thanks for any help.June 21, 2015 at 17:40 UTC #22946scrambler
ModeratorIt would help if you pasted here what you put in the per post style box and told us what it was intended to do.
June 21, 2015 at 19:07 UTC #22947Tony_T
ParticipantAs explained in the ‘with’ and ‘without’ posts linked above, I added the example given in the Help page, ie
{background-color:yellow; border:1px solid blue; padding:5px;}which should add a yellow background and a blue border to the whole post. I’ve also tried with other pieces of code, none of which work. I figured if anything should work the Help page example should!June 21, 2015 at 21:11 UTC #22948scrambler
ModeratorI think you found a bug.
The option is working fine when the “plus” plugin is installed but not when you are running only Xtreme.
@weaver, is the Per post style box supposed to work on Basic Xtreme ?
Because the box is available, but does not seem to produce any result without “Plus”
June 21, 2015 at 23:05 UTC #22949Weaver
KeymasterThe option to add custom post CSS should not be shown in the Free version – note that there is not equivalent Per Page option. One can enter a value, but it is non-functional.
This will be fixed in a new release of the Theme Support Plugin.
June 21, 2015 at 23:16 UTC #22950scrambler
ModeratorWithout plus, you will need to put a rule like below in Main Options > Fonts & Custom > Custom CSS Rule box
.post-id-xxx {background-color:yellow; border:1px solid blue; padding:5px;}
replacing xxx by the post ID #
June 22, 2015 at 08:12 UTC #22951Tony_T
ParticipantThanks to you both – I’m glad it’s not me! I found the bug because I want to have different background images for different sets of posts and the per-post style seemed the easiest way of doing it. But of course, it didn’t work 🙁 I can certainly tailor the custom css but it’s a bit clumsy as a solution as I’ll probably have to add a permanent rule for every single post with a non-standard background rather than generating the css for the background image on the fly by using per-post css.
Either that or I’ll have to get Plus 🙂June 22, 2015 at 15:01 UTC #22952Tony_T
ParticipantGetting a bit off the original topic, but I find I can vary the background image by adding
to the built-in Weaver custom field ‘page-head-code’.June 22, 2015 at 16:57 UTC #22953scrambler
ModeratorYes you can definitely do that it is not really any easier, but it does have the merit to reside in the post editing page
-
AuthorPosts
- You must be logged in to reply to this topic.

