Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1361555

    Hello,
    I would like to have a smaller sidebar width, but only in certain areas of the site. For example in the product tag pages, but not in the blog posts
    I tried with
    @media only screen and (min-width: 1140px) {
    aside.sidebar.sidebar_right.smartphones_sidebar_active.alpha.units {
    width: 13% !important;
    }
    .container .av-content-small.units {
    width: 86%;
    }
    }
    but it is reducing the width in all sidebars

    Thank you
    Mauro

    #1361643

    Hi profumopuntoit,

    Try using this CSS code:

    @media only screen and (min-width: 1140px) {
      #top.archive.tax-product_tag #main .sidebar_right {
        width: 13%;
      }
    
      #top.archive.tax-product_tag #main .content {
        width: 86%;
      }
    }

    Hope it helps.

    Best regards,
    Nikko

    #1361692

    Thank you Nikko,

    it is working adding
    display: table-row;

    #top.archive.tax-product_tag #main .sidebar_right {
    width: 13%;
    display: table-row;
    }

    Thank you
    Mauro

    #1361891

    Hi Mauro,

    Can you try to remove display: table-row; and replace #top.archive.tax-product_tag #main .sidebar_right with #top.archive.tax-product_tag #main .sidebar.sidebar_right and see if it helps. (there are 2 areas that uses the class sidebar_right)

    Best regards,
    Nikko

    #1361908

    Thank you Nikko,

    it is working

    #1361919

    Hi,

    Great, I’m glad that Nikko could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.