JakePT on "images in header php"

ساخت وبلاگ

I have edited my header.php file, to place an image in top right of page, but, when I replicate code for top left,
it does not work. I want images in header on top left and top right.

<style>
body.custom-background { background-image: url("../../../new logo23.png"); background-position: right top !important;
}
</style>

if I include background-position: left top !important;

it does not work, ? (I only end up with one image in header)

thanks

You're setting a background image on the body. If there's already one there, you're overwriting it.

Try adding the background to your header, or add both at once, in this format:

<style>
body.custom-background { background: url(left-image.png) left top no-repeat, url(right-image.png) right top no-repeat;
}
</style>

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 294 تاريخ : يکشنبه 10 مرداد 1395 ساعت: 21:44