This topic has 7 replies, 2 voices, and was last updated 9 years by Radu.

  • Author
  • #124335
     mtgame21
    Participant

    Hi Radu,,

    Based on guidance you gave me earlier I use this CSS to set a background for the woocommerce shop and single product page and it works.  However I believe is also set the default background for the Cart and Checkout page.

     

    /********************     shop   and single product page default  ************/
    /* body.woocommerce-page #main section.container-wrap.main-color {  */
    body.page-id-123 .main-color {
    background-image: url(place image URL here);
    background-repeat:no-repeat;
    background-attachment:fixed;
    }

     

    I tried to change background of these two pages to something different than shop page above with code below with correct page ID,  but I believe its inheriting the shop page background still.

    Any suggestions on how to have the pages below different than the shop page.  All three pages will have a different background the one set in Theme Options.

     

    /********************      cart  but doesnt work,  defaults to above shop background  ************/
    body.page-id-124 .main-color {
    background-image: url(place second image URL here);
    background-repeat: repeat;
    background-attachment:fixed;
    }
    /********************      checkout but doesnt work, default to above shop background   ************/
    body.page-id-125 .main-color {
    background-image: url(place second image URL here);
    background-repeat: repeat;
    background-attachment:fixed;
    }

    #124522
     Radu
    Moderator
    Not marked as solution
    #124550
     mtgame21
    Participant
    Not marked as solution
    #124731
     Radu
    Moderator
    Not marked as solution
    #124747
     mtgame21
    Participant
    Not marked as solution
    #124872
     Radu
    Moderator
    Not marked as solution
    #124876
     mtgame21
    Participant
    Not marked as solution
    #124905
     Radu
    Moderator
    Not marked as solution
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?