English 中文(简体)
独立于主题修改wordpress网站
原标题:Modify wordpress site independently of theme
  • 时间:2011-05-30 20:31:03
  •  标签:
  • wordpress

我在一个网站上使用WordPress主题。我想编辑页面的底部,将WordPress默认消息替换为自定义消息。问题是,我想做的改变应该独立于主题。我可以使用管理面板更改编辑footer.php。问题是,我不希望在更改主题后立即恢复更改。有人能建议如何做到这一点吗?此外,我也想删除WordPress的标志,太。

最佳回答

这恐怕不是wordpress的工作方式。

任何与数据库相关的内容(帖子、页面等)都将保留在不同的主题中,但您直接对主题文件所做的任何更改(编辑默认页脚文本)不仅与该主题相关,还与那些特定的文件相关。如果更改主题或将主题更新为新版本,所做的更改将丢失。

您正在编辑一个文件,当您切换主题时,该文件将不再使用。

问题回答

你可以使用一个插件在页面底部创建一个覆盖层,但这将是一个相当糟糕的解决方案,当你改变主题时,可能会出现不同的效果。

或者,插件可以用来注入一些修改页脚的javascript,但同样,这取决于您想要修改的类/ID的主题。

基本上这不是已经完成的事情!





相关问题
Wrap stray text in <p> tags

Wordpress issue.. how do I wrap stray text in P tags? Example: Before- <div class = "content"> <img src = "hello.jpg"/> <h1>Introduction</h1> Hello! this is ...

Using jQuery Plugins with Wordpress

Having a bit of trouble using jQuery plugins (Superfish, jQuery UI, etc) using Wordpress. Everything works fine in my plain non-Wordpress site, but Wordpress seems to conflict with JQuery. There must ...

WordPress Data Storage Efficiency

I ve been asked to review a WordPress plugin of sorts and try to find ways of making it faster. The premise of this plugin is basically to store a bunch of users and shifts and appointments and ...

Why can t I properly style a blockquote in Wordpress?

On the design I just created for my website, I have a blockquote styled with two quote images using the span technique in css: blockquote { background-image: url(images/openquote.jpg); background-...

How does the WordPress <!--nextpage--> tag actually work?

What happens? I m guessing that somehow the post or page is parsed before displaying, and then just split into two methods? I can t seem to find any documentation on how the underlying <?php ...

Wordpress Plug-ins: How-to add custom URL Handles

I m trying to write a Wordpress Plug-in but can t seem to figure out how you would modify how a URL gets handled, so for example: any requests made for: <url>/?myplugin=<pageID> will ...

热门标签