admin管理员组文章数量:1023838
is it possible to develop a wordpress theme with 0% javascript code
if you are wondering why, I need to make a blog on TOR network and as you may know TOR browser doesn't support javascript
is that possible? is there a theme with no JS i can test functionalities on?
is it possible to develop a wordpress theme with 0% javascript code
if you are wondering why, I need to make a blog on TOR network and as you may know TOR browser doesn't support javascript
is that possible? is there a theme with no JS i can test functionalities on?
Share Improve this question asked May 6, 2019 at 11:35 Salim AljayousiSalim Aljayousi 1212 bronze badges 1- 1 Yes, of course it's possible. Just don't add any JavaScript (and don't use any plugins that use JavaScript). If your asking for a theme, this is not the place. Asking for theme recommendations is off-topic here. – Jacob Peattie Commented May 6, 2019 at 12:07
1 Answer
Reset to default 4Yes, you have total control over custom themes. The caveat is, many plugins add JavaScript using hooks, so you'll also have to determine what JS your plugins add and then dequeue them (remove the JS they're trying to add). This may prevent many plugins from working, so you'll have to determine what is critical and what you can live without.
It's also possible that a poorly-coded plugin may add JS directly without the ability to dequeue, so again you'll have to work through that on a case by case basis.
The simplest WordPress theme contains 2 very short files: a style.css
with comments that identify the theme name and slug, and an index.php
file with a very simple loop. If you just create these files, there won't be any JavaScript, because there are no hooks for plugins to use (the most common hook for plugins to add JS is wp_head()
but there are other possibilities). If you truly want to go no JS, it will probably be fastest to read up on theme development and build your own theme, rather than trying to seek out a theme that doesn't use any. Most available themes rely on some JS.
is it possible to develop a wordpress theme with 0% javascript code
if you are wondering why, I need to make a blog on TOR network and as you may know TOR browser doesn't support javascript
is that possible? is there a theme with no JS i can test functionalities on?
is it possible to develop a wordpress theme with 0% javascript code
if you are wondering why, I need to make a blog on TOR network and as you may know TOR browser doesn't support javascript
is that possible? is there a theme with no JS i can test functionalities on?
Share Improve this question asked May 6, 2019 at 11:35 Salim AljayousiSalim Aljayousi 1212 bronze badges 1- 1 Yes, of course it's possible. Just don't add any JavaScript (and don't use any plugins that use JavaScript). If your asking for a theme, this is not the place. Asking for theme recommendations is off-topic here. – Jacob Peattie Commented May 6, 2019 at 12:07
1 Answer
Reset to default 4Yes, you have total control over custom themes. The caveat is, many plugins add JavaScript using hooks, so you'll also have to determine what JS your plugins add and then dequeue them (remove the JS they're trying to add). This may prevent many plugins from working, so you'll have to determine what is critical and what you can live without.
It's also possible that a poorly-coded plugin may add JS directly without the ability to dequeue, so again you'll have to work through that on a case by case basis.
The simplest WordPress theme contains 2 very short files: a style.css
with comments that identify the theme name and slug, and an index.php
file with a very simple loop. If you just create these files, there won't be any JavaScript, because there are no hooks for plugins to use (the most common hook for plugins to add JS is wp_head()
but there are other possibilities). If you truly want to go no JS, it will probably be fastest to read up on theme development and build your own theme, rather than trying to seek out a theme that doesn't use any. Most available themes rely on some JS.
本文标签: theme developmentusing wordpress without javascript
版权声明:本文标题:theme development - using wordpress without javascript 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745520251a2154283.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论