Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #271703
    daveng68
    Participant

    Hello,

    I’m trying to customize the integrity.php function (located in framework/functions/) and I don’t know how to do it in the child theme.
    What I’m trying to do is to remove the name of the author in an article page… maybe I’m doing it wrong, but by going in integrity.php and commenting the part where it looks up for the author, I can get what I’m aiming at.
    But I need to do this in the theme itself, so that will get overwritten if I update the theme. Is there a way to do it through child themes? Is there another “nicer” way to do it?

    Many thanks in advance for your answer.

    David

    #271880
    Zeshan
    Member

    Hi David,

    Thanks for writing in!

    You’ll need to overwrite the functions in your child theme’s functions.php file. For example, if a function starts with following line (see: http://prntscr.com/743l8o):

    if ( ! function_exists( 'function_name' ) ) :
    

    you can simply copy this entire function and paste in your child theme’s functions.php file. Then you can modify that as per your needs.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-271703 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>