dp5657087 2014-07-15 20:17
浏览 26
已采纳

如何在Wordpress的标题中添加图像[关闭]

Link: http://new.shiva-rahbaran.org/wordpress/

I would like to have a profile pic in the upper left part. I'm using the twentytwelve Wordpress theme.

The Result should be something like this: http://shiva-rahbaran.org/

So, it can also be above the right side menu. Where and how to integrate in the Wordpress back-end with, my theme?

Best, Amir

  • 写回答

2条回答 默认 最新

  • duanqinjiao5244 2014-07-15 20:22
    关注

    I would recommend adding it as a widget since you probably aren't using a child theme (any updates to the theme would override your edits unless you put those in a child theme).

    Upload the image. Get the path of the image after it uploads (click Edit in Media Library and the path is on the right side in a greyed well).

    In the Appearance > Widgets area in the admin section, add a text widget above the sidebar widget that is creating the Of Interest section and then include the code

    <img src="path/to/image.jpg">

    To hide on small screens you will need to add a media query like this:

    @media screen and (max-width: 767px) {
       .hide-mobile {
       display:none;
       }
    }
    

    You can change the width px to whatever your preference is. Devices vary.

    Then you would append the class to the URL like <img src="path/to/image.jpg" class="hide-mobile">

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 求螺旋焊缝的图像处理
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了