• Hi,im kinda new in all this and i would appreciate some help if its possible.
    My problem is that i want to change post width only for single listings like HERE in picture but i dont know where to change that becasue i dont see it in single.php template or anywhere else in my theme templates.
    I wanted to make it boxed content.

    Thanks.

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

    What you’ll want to do is make note of the CSS classes that are being applied in just the single.php template, and then you can manipulate the width by editing those classes in the CSS – in your style.css file. To see which classes are being applied, try doing “inspect element” in your browser.

    Thread Starter cosmozara

    (@cosmozara)

    Dbking thx did this the trick 😀

    #archive #main-content, #search #main-content, #single #main-content, #page #main-content {
    margin-top: 10px;
    margin-right: 250px;
    margin-bottom: 10px;
    margin-left: 250px;
    }

    Hmm but now it changed all full widht pages to that setup…..
    Hmm im confused if i make it like this:

    #single #main-content, {
    margin-top: 10px;
    margin-right: 250px;
    margin-bottom: 10px;
    margin-left: 250px;
    }

    Nothing happens…

    Hmm noob me i didnt saw comma P yep now it works like this:

    #single #main-content {
    margin-top: 10px;
    margin-right: 250px;
    margin-bottom: 10px;
    margin-left: 250px;
    }

    Great, glad you figured it out!

    Thread Starter cosmozara

    (@cosmozara)

    Ok now i have an issue with smartphone and tablets :D…..it seems im gonna need to make custom single.php but if anyone knows how to adjust this without making new single.php it would be great :D.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Changing width on single.php’ is closed to new replies.