admin管理员组文章数量:1391981
i am good looking for a way to move - in blog page - the category description under the post list instead of above by default.
Can i do that with a php function without changing the theme files ?
thanks a lot
i am good looking for a way to move - in blog page - the category description under the post list instead of above by default.
Can i do that with a php function without changing the theme files ?
thanks a lot
Share Improve this question asked Apr 1, 2020 at 0:39 JojoLapin75JojoLapin75 111 bronze badge 3- You would need to edit the template files. It's not possible to rearrange template files from functions.php. – Jacob Peattie Commented Apr 1, 2020 at 7:20
- I figured is was possible with filter and action, is'int it ? – JojoLapin75 Commented Apr 1, 2020 at 9:21
- No. Not unless the theme author specifically added their own hooks for you to use. That's very uncommon. You would need to check with the theme author. The proper way to modify theme templates is to use a child theme. – Jacob Peattie Commented Apr 2, 2020 at 0:14
1 Answer
Reset to default 0The possibility to use actions to change template layout depends on the theme you're using. If the template consists of partials which are added via action hook, then you could remove the default functions attached to it and add them back in any order you want.
But if the layout is hardcoded in the template file, then your only option is to edit the file - i.e. copy it to a child theme and make modficiations to that copied file.
本文标签: phpMove category description below post list in blog
版权声明:本文标题:php - Move category description below post list in blog 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744610821a2615642.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论