How to override template in PokaTheme – PokaTheme https://pokatheme.com/topic/how-to-override-template-in-pokatheme/feed/ Fri, 19 Jan 2024 03:26:00 +0000 https://bbpress.org/?v=2.6.9 en-US https://pokatheme.com/topic/how-to-override-template-in-pokatheme/#post-4436 <![CDATA[How to override template in PokaTheme]]> https://pokatheme.com/topic/how-to-override-template-in-pokatheme/#post-4436 Fri, 31 May 2019 13:49:31 +0000 admin All Poka theme template files can be overwritten in your child theme by just copy/paste the specific file to your child theme and keep the original folder structure.

Example:

If you want to make your changes to single.php you can copy the file from poka_theme and paste it to the root of your child theme.

Another example:

You want to make changes to inc/templates/header-style1.php

First you need to create the folders inc/templates to your child theme and then paste the php file inside templates folder in order to keep the folder structure the same and WordPress know that you need to override the file of the parent theme.

Notice: This apply only to template files such us single.php,taxonomy-lists.php, loop-search.php. Etc.

For the files that are not templates such as ratings.php you can make changes by overriding functions and not the whole file.

You can copy paste the function/functions to your child theme functions.php and make the changes you want.

]]>