简体   繁体   English

主题中的前端\\后端交互

[英]Frontend \ Backend Interaction in Themes

I'm trying to migrate a simple html theme in Wordpress. 我正在尝试在Wordpress中迁移一个简单的html主题。

While moving the theme itself wasn't difficult at all, i am now at the point where i have my theme working in Wordpress but, since all the content is simple html, there is no possibility of changing\\customizing it from the backend. 尽管移动主题本身并不困难,但现在我可以在Wordpress中使用主题了,但是由于所有内容都是简单的html,因此不可能从后端更改/自定义它。

Does anyone among you know where i could find a detailed in-depth guide about the subject? 你们当中有人知道我在哪里可以找到有关该主题的详细深入指南吗? The wordpress codex seems a bit lackluster on the matter ( take http://codex.wordpress.org/Theme_Development#Theme_Options as an example). Wordpress Codex在这件事上似乎有些呆板(以http://codex.wordpress.org/Theme_Development#Theme_Options为例)。

It doesn't necessarily have to be a free resource, i could fork out some money if you think the guide\\book\\whatever it's worth it :p 它不一定必须是免费资源,如果您认为guide \\ book \\值得,我可以掏出一些钱:p

If you need a page with theme options I recommend taking a look here: http://wp.tutsplus.com/tutorials/using-the-settings-api-part-1-create-a-theme-options-page/ 如果您需要带有主题选项的页面,建议您在此处查看: http : //wp.tutsplus.com/tutorials/using-the-settings-api-part-1-create-a-theme-options-page/

It's a good tutorial, but maybe a bit too much for beginners 这是一个很好的教程,但对于初学者来说可能太多了

Rather than the Settings API lookup I would suggest you to look for Redux Options for Admin Panel 建议您不要在设置API中查找“管理面板”的“ Redux选项”

This I suggested because, a new theme developer can integrate all he needs in his/her CMS in an unified Admin Options panel with this. 我建议这样做的原因是,新的主题开发人员可以在一个统一的“管理选项”面板中集成他/她在CMS中的所有需求。 Even seasoned developers use this NHP Options (later adopted into Redux Options). 即使是经验丰富的开发人员也可以使用此NHP选项 (后来被Redux Options所采用)。 These Admin Panel addon is made with the support of Wordpress Settings API , so lots of headaches gone! 这些管理面板插件是在Wordpress设置API的支持下制作的,因此许多麻烦事都过去了!

You might want to get this plugin for you are a beginner. 您可能想获得这个插件,因为您是一个初学者。 http://codecanyon.net/item/ether-content-builder-wordpress-plugin/1690784 With this Ether Builder you can create really rich content within your posts. http://codecanyon.net/item/ether-content-builder-wordpress-plugin/1690784使用此Ether Builder,您可以在帖子中创建真正丰富的内容。 Its a commercial plugin and is suitable for non-coders who are at beginner stage but in a hurry to size up his WP site fast. 它是一个商业插件,适合初学者但急于快速扩展其WP网站的非编码人员。 But for a developer I'd suggest thorough learning of the WP codex and tutorials present at the www.nettuts.com and other great sites around the interweb. 但是对于开发人员,我建议您彻底学习WP Codex和www.nettuts.com以及互联网上其他出色站点上提供的教程。

If I understand you well you currently have a HTML website and would like to convert this to a working WordPress theme, correct? 如果您对我的理解很好,那么您当前有一个HTML网站,并希望将其转换为可正常工作的WordPress主题,对吗?

Please see my answer here: How to "package" a theme 请在这里查看我的答案: 如何“打包”主题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM