Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2853413
Override main.css
Closed

Comments

  • fioridizuccaimmagine started the conversation

    Hi, is it possible to create a main.css in child theme folder to override the original one? It seems it doesn't work. I'd like to reduce main body from 1170 to 1080 px.

  •  2,613
    PenciDesign replied

    Hi,

    You should create a child theme then overwrite some CSS rules. This is a CSS code overwrite the main site from 1170 to 1080 px:

    #navigation ul.menu > li.megamenu > ul.sub-menu,
    .featured-style-29 .penci-featured-content .feat-text,
    .pencislider-container .pencislider-content,
    .featured-area.magazine-slider,
    .vc-penci-w1170,
    .container {
        max-width: 1080px;
    }

    Regards,
    PenciDesign.

  •   fioridizuccaimmagine replied privately
  •   PenciDesign replied privately
  • fioridizuccaimmagine replied

    I added code you suggested in style.css of the child theme (please check image in previous message) but it doesn't work, you can check here ( https://www.test.pupia.tv/ ). I can't modify main.css in main theme, else I'll have to change it after any update.

    The only override possible is from theme customization and then css, but I should add also media queries.

  •  2,613
    PenciDesign replied

    Hi,

    I've checked your site, the main body container is now from 1170 to 1080px already:

    image.png

    What wrong?

    Regards,
    PenciDesign.


  • fioridizuccaimmagine replied

    sorry, I didn't empty cache