Hi guys?
It’s possible to change the background of style 11 posts from the grey color to an image and make it default to all posts with the same style?
I want to make something similar to the footer options, where I can make upload of an image and set it as background.
Thank You!
You can use custom css to apply an image to all the template 11 posts:
.td-post-template-11 .td-video-template-bg{
background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg');
background-repeat: no-repeat;
}
result: http://screencast.com/t/mG1hLR1DdDu
You will have to use your own image in the image url and it will propably require a few adjustments to align properly.
Thank you!
Great Bogdan! Thank You!
Just one more question: I tried with your example and it worked but I my example didn’t work. I want to use an image from my wordpress library but I think I’m using an incorrect url. Can you help me on that and teach me what is the right url to use an image from my website library? Thank You!
Forget my last message! I did it! 🙂
Thank You for your help and good work for you all. I’m always proud of beeing and newspaper user. 🙂
Hello, I’d like to take this one step further–is there a way to add code in the CSS to have a custom color/image BG in the video post types (10, 11) based on Category?
For example, a Lifestyle video would have a blue BG, a Gaming video would have a red BG, etc.
Ideally, I would love to have video display in post using a post style similar to style 8, where the featured image for the video is the entire BG, but the video plays where it would in style 10… I just don’t know if that’s possible?
Thanks!
-
This reply was modified 10 years by
Kage.
Hi,
Unfortunately css cannot do this. It does not detect the category of the post. for this you will need coding skills and conditions added in the theme files in PHP. If you do not have the proper coding knowledge for this, you can hire a freelancer from sites like studio.envato.com
Thank you!