将广告图像放在wordpress内容部分之外

时间:2016-01-25 15:30:40

标签: php wordpress templates

我正在尝试在Wordpress网站上放置两张160x600像素。

<img src="PICTURE" width="160px" height="600px">

基本上只是插入上面的代码(网站是http://fodball.dk/)。

如何在灰色背景上(<div id="content">之外)在此网站上放置广告?

我应该编辑哪个Wordpress模板文件?我几乎尝试了模板文件夹中的每个文件,但我似乎无法使其正常工作。

1 个答案:

答案 0 :(得分:0)

你在css中尝试过背景属性吗?

例如:

.bgpic{
    background-image: url('path/to/image.jpg'); 

    /* Optional: */
    background-position: center;
    background-repeat: no-repeat;
}