• I have an image website that uses the feature image to display png images with a transparent background, I need the background of the feature image section to show a chequered box pattern to show that it is transparent at the moment it just looks like a white background, I would be grateful for some help

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you show us a page in your website to illustrate what you mean?

    Thread Starter luvvvvvit

    (@luvvvvvit)

    This is a post page as you can see the motorbike looks like it has a white background but it is transparent so I would like it to have a chequered background to show its transparency http://freepngimages.com/police-motorbike

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you’re not using a Child Theme, and if the theme doesn’t have a designated section of the dashboard for CSS modifications then do the following:

    1. Install this Custom CSS Manager plugin http://wordpress.org/plugins/custom-css-manager-plugin
    2. use its “CSS Code” section of the dashboard to hold your CSS modifications:
    3. (put this code in)

      .wp-post-image {
          background-image:
            -moz-linear-gradient(45deg, #000 25%, transparent 25%),
            -moz-linear-gradient(-45deg, #000 25%, transparent 25%),
            -moz-linear-gradient(45deg, transparent 75%, #000 75%),
            -moz-linear-gradient(-45deg, transparent 75%, #000 75%);
          background-image:
            -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, #000), color-stop(.25, transparent)),
            -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, #000), color-stop(.25, transparent)),
            -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.75, transparent), color-stop(.75, #000)),
            -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.75, transparent), color-stop(.75, #000));
      
          -moz-background-size:100px 100px;
          background-size:100px 100px;
          -webkit-background-size:100px 101px;
      
          background-position:0 0, 50px 0, 50px -50px, 0px 50px;
      }
    4. Save

    Alternatively use your Child Theme style.css file to hold your CSS modifications

    http://lea.verou.me/2011/02/checkerboard-pattern-with-css3/

    Thread Starter luvvvvvit

    (@luvvvvvit)

    You are the best thank you so much for your help

    Thread Starter luvvvvvit

    (@luvvvvvit)

    This works great on my site but is there any way i can make it work on internet explorer background is just showing as white? thank you

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I would recommend creating the pattern in an image manipulating tool, Photoshop for example. Then just using CSS background image to import that in. This will require a child theme.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Transparent background pattern twenty twelve’ is closed to new replies.