如何将背景图像添加到wordpress导航栏 [英] How to add a background image to a wordpress navigation bar
问题描述
我正在使用wordpress和购买主题构建的网站上工作。
网站网址是www.ringgeorge.com
我想添加背景图片网站导航栏。
我的尝试:
我我正在使用自定义程序向CSS添加自定义代码。
这是我插入并发布的代码。
#noo- header.noo-header {background-image:url(
https://ringgeorge.com/wp-content/uploads/2017/07/Handphone-7.jpg\";}
图片已经上传到wordpress网站的媒体库。网址是从这个图书馆获得的。
这个没有工作。请在custom.css文件中建议。
,在其底部添加此代码:.navbar {
background-image:url(https://ringgeorge.com/wp-content/uploads/2017/07/Handphone-7.jpg)
}
I am working on website built using wordpress and a purchased theme.
The website url is www.ringgeorge.com
I would like to add a background image to the website navigation bar.
What I have tried:
I am using the customiser to add a custom code to the CSS.
This is code that I had inserted and published.
#noo-header.noo-header{background-image:url("
https://ringgeorge.com/wp-content/uploads/2017/07/Handphone-7.jpg";}
The image was already uploaded in the wordpress site's media library. The url was obtained from this library.
This did not work.Please advise.
in the custom.css file, add this code at the bottom of it:.navbar { background-image: url("https://ringgeorge.com/wp-content/uploads/2017/07/Handphone-7.jpg") }
这篇关于如何将背景图像添加到wordpress导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!