1

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

3
  • You would need to edit the template files. It's not possible to rearrange template files from functions.php. Apr 1, 2020 at 7:20
  • I figured is was possible with filter and action, is'int it ? 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. Apr 2, 2020 at 0:14

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.