• gurkhas

    (@gurkhas)


    Hi All,

    What am I doing wrong below (style.css page Child Theme):

    if(is_woocommerce()){
    #content {
    margin: 0 auto;
    width: 90%
    }
    }

    Only if the page is a woocommerce page, I want the content to be 90%.

    Thanks,
    Andy

Viewing 1 replies (of 1 total)
  • Thread Starter gurkhas

    (@gurkhas)

    I fixed this, by entering the following on a custom CSS editor plugin:

    .woocommerce #content {
    margin: 0 auto;
    width: 90%
    }

    Hope that helps.

    Andy

Viewing 1 replies (of 1 total)
  • The topic ‘IF syntax with #content’ is closed to new replies.