最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Move category description below post list in blog

programmeradmin2浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 0

The 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.

发布评论

评论列表(0)

  1. 暂无评论