Comments 2Elina started the conversationJanuary 19, 2017 at 9:08pmHow can i override thegem_page_title() function in functions.php?I need add some things. 7,092Oliver repliedJanuary 20, 2017 at 3:16pmHI!1. Copy thegem_page_title function in the child theme with all the code. 2. Rename it to for example thegem_page_title_new and add changes which you need.3. You need to change function name to thegem_page_title_new in the next templates:/wp-content/themes/thegem/404.php/wp-content/themes/thegem/content-page.php/wp-content/themes/thegem/index.php/wp-content/themes/thegem/page-shop.php/wp-content/themes/thegem/search.php/wp-content/themes/thegem/woocommerce.phpYou need to copy this templates to the child theme for safety updates.Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver Sign in to reply ...
How can i override thegem_page_title() function in functions.php?
I need add some things.
HI!
1. Copy thegem_page_title function in the child theme with all the code.
2. Rename it to for example thegem_page_title_new and add changes which you need.
3. You need to change function name to thegem_page_title_new in the next templates:
/wp-content/themes/thegem/404.php
/wp-content/themes/thegem/content-page.php
/wp-content/themes/thegem/index.php
/wp-content/themes/thegem/page-shop.php
/wp-content/themes/thegem/search.php
/wp-content/themes/thegem/woocommerce.php
You need to copy this templates to the child theme for safety updates.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver