dongzhao3040 2015-07-07 15:32
浏览 22
已采纳

在wordpress中修改主题时,当我想删除主题内容时,最好删除CSS或PHP或BOTH

I am doing my website, with studiopress genesis framework and their theme child, now i want to remove some unneccesary header content. So I know which code to remove from CSS and which from PHP, is it enought if I only remove CSS and leave PHP, and vice versa, or do I need to remove them both?

Thank you on help!

  • 写回答

2条回答 默认 最新

  • douxiangui5011 2015-07-07 16:13
    关注

    Because your goal is to REMOVE the content, you have to remove the PHP code with its HTML counterpart. In fact, it's irrelevant whether you remove the CSS or not. You might use that styling for something else.

    Anders' solution will work well if your goal is to HIDE the content instead of removing it and as he said, you can later on put it back if you like.

    If you are absolutely sure that you won't need to use that ever again (heck, you can just copy it back from the original theme) and that you also won't need to use the styling, then go ahead and remove both the CSS and the PHP/HTML to keep everything clean. I would personally do that since I like my code to be looking good :)

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

报告相同问题?

悬赏问题

  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化