最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

theme customizer - Using different header images for different devices

programmeradmin1浏览0评论

I'm using the Ascension theme (by Go Daddy). When my website is loaded using a PC or ipad my header looks ok, however when loading it on a phone it is not resizing to fit the screen (so I'm losing a bit from both ends) and also my page title is not in the correct place (top rather than middle). I would like to use two images to be displayed on to different devices. Can this be done in CSS or is it theme template modification? Just for the purposes of this question just say that I have two pics:

header-pc.jpg header-moblie.jpg

Many Thanks,

Paul

site: /

I'm using the Ascension theme (by Go Daddy). When my website is loaded using a PC or ipad my header looks ok, however when loading it on a phone it is not resizing to fit the screen (so I'm losing a bit from both ends) and also my page title is not in the correct place (top rather than middle). I would like to use two images to be displayed on to different devices. Can this be done in CSS or is it theme template modification? Just for the purposes of this question just say that I have two pics:

header-pc.jpg header-moblie.jpg

Many Thanks,

Paul

site: http://www.catherineparkersolutions.co.uk/

Share Improve this question edited Jun 22, 2019 at 14:34 Paul asked Jun 22, 2019 at 14:28 PaulPaul 13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I’ll debug the source code after for detail anwser but I guest you can try this CSS solution:

@media screen and (max-width: 375px) {   css selector {     background-image: url("header-mobile.jpg");   } }

发布评论

评论列表(0)

  1. 暂无评论