• Resolved gabb995

    (@gabb995)


    Hello,

    I applied this CSS but I know that it is not specific enough.

    .entry-content p {
            max-width: 30em;
    	margin-left: auto;
    	margin-right: auto;
    }

    I like how it looks on my portfolio projects but I don’t want to apply it to the blog posts. How can I specify that?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    Both posts and projects are using the same class so it’s not possible to alter one without affecting the other. This applies to all the themes that are using Jetpack’s Portfolio feature.

    I like how it looks on my portfolio projects but I don’t want to apply it to the blog posts. How can I specify that?

    Hi there,

    If you’d like to only target portfolio projects, please try replacing your CSS with this:

    .jetpack-portfolio .entry-content p {
        max-width: 30em;
        margin-left: auto;
        margin-right: auto;
    }
    Thread Starter gabb995

    (@gabb995)

    It worked! Thank you both for the replies ??

    You’re welcome, glad I could help ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Max width of a paragraph on specific page’ is closed to new replies.