• Hello,
    I would like to know how to set a width for only one page. This page have it defined in full width, but the text is too wide, boring to read. I have defined this in the css, but not working. thanks

    /* Poner menos ancho el contenedor de articulo */
    @media (min-width: 1200px)
    {.span12.article-container .page-id-1825 {
    width: 600px;
    }}
    
    /* Poner menos ancho el contenedor general para centrar lo anterior */
    @media (min-width: 1200px)
    {.container .page-id-1825 {
    width: 700px;
    }}
Viewing 5 replies - 1 through 5 (of 5 total)
  • try with
    .page-id-1825 .span12-article-container
    and
    .page-id-1825 .container

    since .page-id-1825 is one of the body classes.

    Thread Starter caritosalaz

    (@caritosalaz)

    thanks for your quick help, I changed to:

    /* Poner menos ancho el contenedor de articulo */
    @media (min-width: 1200px)
    {.page-id-1825 .span12-article-container {
    width: 400px;
    }}
    
    /* Poner menos ancho el contenedor general para centrar lo anterior */
    @media (min-width: 1200px)
    {.page-id-1825 .container {
    width: 700px;
    }}

    but neither worked, the link to the page is:
    https://pintar-al-oleo.com/guia-oleo-gratis-1/

    sorry the first one should be:
    .page-id-1825 .span12.article-container
    I made a typo.

    Look that the second one (container) will affect also colophon and footer too.
    To make it affect just the containers in the main content:

    @media (min-width: 1200px){
    .page-id-1825 #main-wrapper.container, .page-id-1825 #main-wrapper .container {
      width: 700px;
    }}

    Thread Starter caritosalaz

    (@caritosalaz)

    Many thanks! It has worked!

    If I wanted to do this for all sites that have the template “without sidebars, full width” how I could specify?

    Where there is a body class you can use, but not in your theme’s version which is pretty old.
    You should update your theme to have it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘set a width for only one page’ is closed to new replies.