0

I am customizing nodes for a blog entree's so they have a certain aesthetic look to it. However, I ran into a problem.

I can enter custom CSS code to style the nodes for already existing ones and set them with classes, but if someone is going to create a new node on the site, the blog CSS doesn't appear because I have to go in to each one and constantly hand-code it.

Obviously this is time-consuming and not the right way to go about it, because anyone who creates a blog would have to wait for me to style it for them. Is there a way where I can make a CSS code that will keep the look and feel every time someone creates a new blog entree?

2
  • Sounds like you're inserting the same CSS into each node manually. That's can't be true right?
    – doublejosh
    Feb 13, 2016 at 22:18
  • No, that's what I was doing.
    – Shawn
    Feb 13, 2016 at 22:56

1 Answer 1

1

I'm not sure I get the scenario. What if you apply your css to both old and new classes?

Example

.old_nodes .content, .new_nodes .content {
   color:red;
} 

This will give same style to both new and old nodes.

2
  • I figured it out. I had to install code per node module and use content type styling so each new entry would come with its set prebuilt style.
    – Shawn
    Feb 13, 2016 at 20:28
  • From my experience, code per node requires manual action for each node. Happy you figured out, @Shawn !
    – Augusto
    Feb 16, 2016 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.