dongtiran7769 2014-10-09 16:06
浏览 15
已采纳

wordpress中的代码文件更改不会出现在网站上

I'm working on a new design for my website with a wordpress theme called Bello by Wegraphics.

The social media links don't open in a new tab, so I went into index.php and added target="_blank" to the links for the links, but even after an out-of-cache refresh on the page, the links still open in the current tab...

Social media links are managed within the theme options in that they are added/not added to the markup depending on whether or not a user/page name is specified for the social media platform.

Earlier I had a similar problem with the site footer where I actually had to manually specify the footer text in the theme options because my changes to the code file weren't being applied so I'm sure the theme options have something to do with it, but its beyond me how to get around it...

The URL in question here is blog.loganyoung.za.net

What I'd like to know is how I can get my changes to the code files to actually apply on the site when the features are handled by the theme.

If anyone can help me at all, I'd greatly appreciate it.

  • 写回答

2条回答 默认 最新

  • duanmiao6695 2014-10-09 17:07
    关注

    The problem was not in the index.php file as I had expected.

    I had to change the links in the php code in both the page template(page.php) and the single post(single.php) files.

    I simply added in the target attribute without modifying the php code.

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

报告相同问题?

悬赏问题

  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面