很久沒回來寫文章,將Wordpress更新到3.5.1,佈景Suffusion更新到4.4.6之後,赫然發現背景圖不見了。
交叉比對後,發現Wordpress的後台中外觀->背景裡面的設定會蓋過Suffusion的設定,必須設定背景圖,Suffusion的背景圖設定才會生效。而外觀->背景裡面的設定沒有關於top和Bottom的position選項。
然而卻發生了Suffusion的costum設定沒有效用?因為當我將背景圖位置設定為Bottom center,實際上背景圖還是出現在top,head背景的後方。
媽呀,這也太傻了,背景圖就一定得要整頁分布,不能位於Bottom嗎?
花了一下午變換了好多關鍵字搜尋,都快惱火了,突然看見Suffusion討論區一篇文(搜尋關鍵字是在google搜索”Suffusion background image position”)
http://aquoid.com/forum/viewtopic.php?f=2&t=11331
Background Issues
by Beauty » 22 Jun 2012, 20:23
Hi
Before I begin may I say I have read the instructions surrounding the background and WP. But even though I have followed the instructions I find that Suffusion will not override WP settings. I’ve even added some code to the ‘custom includes’ to try and override it but this doesn’t work neither.
I have Minima Suffusion theme with a fixed centre bottom background that is horizontally repeated. Everything works fine except the bottom centre.
So my image should repeat along the bottom of the screen, but it simply stays at the top.
Any suggestions to fix this please.
這跟我的症狀是一模一樣(網站類型也很相似,We can be friends! ),接著很多建議,結果還是得自己寫碼到Backend -> Custom Includes -> Custom Style
Re: Background Issues
by drake » 23 Jun 2012, 05:28
Ok, now the version problem is fixed and the site show a white background instead of gray one. Your background image seems to be settled at top-center. If you can’t set the image at bottom-center at Suffusion Options -> Skinning, add this at Suffusion Options -> Backend -> Custom Includes -> Custom Styles:
- CODE:
body.custom-background {background-position: bottom center;}
於是事情解決了,問的美女很開心,我也很開心,但是還是很惱火…這預設的選項蠢到我們得自己寫這麼基本的碼…雖然我也是有寫,但是寫錯了所以沒有作用(惱炸)。
對drake也讚一個,如果有跟我遇到一樣問題的,希望可以幫助他們節省點時間囉。