Replacing Genesis functions in child themes

Community Forums Forums General Discussion Replacing Genesis functions in child themes

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #97935

    bennymcl
    Member
    Post count: 2

    So, I have been looking online for some help on the issue and, so far, have come up short..

    I am trying to override functions such as genesis_seo_site_title in the header.php file within the structure folder.

    I am assuming I need to modify it in the functions.php file of my child theme, but I am having no luck finding the appropriate code for it. Traditionally, I am used to just copying a file from a parent theme to the child theme and overriding whatever I need to. This appears not to work on Genesis as I have copied over lib/structure/header.php and attempted minor changes to the function (like changing the html output code of the function). No luck, it still pulls it from the parent header.php file.

    Any help? I know it must be something rather obvious that I am just missing or else there would be far more documentation on the matter… Perhaps I missed something in the manuals?

    Any help would be very much appreciated!

    Thanks
    B

    • This topic was modified 7 months ago by  bennymcl.
    • This topic was modified 7 months ago by  bennymcl.
    #97992

    braddalton
    Participant
    Post count: 10355

    You can easily filter the genesis_seo_site_title using a custom function in your child themes to modify the default output.

    Examples http://wpsites.net/web-design/remove-genesis-site-title-conditionally/

    Filters http://my.studiopress.com/docs/filter-reference/

    Hooks http://my.studiopress.com/docs/hook-reference/


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.