Margin problem - by abdouAllâh - on WordPress WooCommerce support

This topic has 8 replies, 2 voices, and was last updated 4 years, 1 months ago ago by abdouAllâh

  • Avatar: abdouAllah
    abdouAllâh
    Participant
    January 2, 2021 at 19:19

    Hello, I hope you are doing well if The Lord of the Worlds wills …

    I have a problem with the “container”, I can not remove the bottom margin of my site just above the footer after searches …

    However, I have the css but if I add myself a correction like “margin-bottom” or “padding-bottom” it does not change anything even by adding “! Important”.

    Do you have an idea ?

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: abdouAllah
    abdouAllâh
    Participant
    January 2, 2021 at 19:26

    I found: it was the “margin-top”, however, now everything is back up and goes below the “main header”, I don’t understand …

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    January 4, 2021 at 16:09

    Hello,

    Add the below custom to Theme Options > Custom CSS to add the top space on the My account page

    .woocommerce-account .content-page {
        padding-top: 150px;
    }

    Regards

    Avatar: abdouAllah
    abdouAllâh
    Participant
    January 4, 2021 at 21:41

    Thank you but I have this in all my pages except the home page because the slider goes below the main header.

    How then?

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    January 5, 2021 at 18:35

    Hello,

    Let’s clear the situation:
    A) Do you need the mentioned padding for all the pages except the home page
    OR
    B) Do you need the mentioned padding for the My account page at this moment?

    Because the code that I provided works for the My account page only.

    Regards

    Avatar: abdouAllah
    abdouAllâh
    Participant
    January 5, 2021 at 19:28

    Yes, I do need this for everything except the home page, Allâh willing …

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    January 6, 2021 at 13:16

    Hello,

    In this case, replace the previous code by the code below

    body:not(.home) .content-page {
        padding-top: 150px;
    }

    Regards

    Avatar: abdouAllah
    abdouAllâh
    Participant
    January 6, 2021 at 19:10

    Praise be to Allâh. Thank you very much !

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘margin problem’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.