Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1028366
Override function
Closed

Comments

  •  2
    Elina started the conversation

    How can i override thegem_page_title() function in functions.php?

    I need add some things.

  •  7,092
    Oliver replied

    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