Copying modified PHP files to Child Theme not working

Hello,

We need to disable the links on the portfolio page that links the “skills” i.e tags.

we found the code in / framework / functions / frontend / integrity.php

Line 144:
echo ‘

  • ’ . $term->name . ‘
  • ’;

    we want to make the change in the child theme folder, we copies the files to the childtheme directory as such:
    / wp-content / themes / pro-child / framework / functions / frontend / integrity.php

    and made the changes to the code line above. but the results are not showing,

    Is there other files related to this that we should also copy to the child theme directory?

    or do you have an easier solution for what we need to do?

    THank you

    Hello @MI1,

    That block of code is a function so all you have to do is to copy it and place it in the functions.php of the child theme:

    // Portfolio Tags
    // =============================================================================
    
    if ( ! function_exists( 'x_integrity_portfolio_tags' ) ) :
     function x_integrity_portfolio_tags() {
    
       $terms = get_the_terms( get_the_ID(), 'portfolio-tag' );
    
       echo '<ul class="x-ul-icons">';
       foreach( $terms as $term ) {
         echo '<li class="x-li-icon"><a href="' . get_term_link( $term->slug, 'portfolio-tag' ) . '"><i class="x-icon-check" data-x-icon-s="&#xf00c;"></i>' . $term->name . '</a></li>';
       };
       echo '</ul>';
    
     }
    endif;
    

    Hope this helps.

    Thank you. it works

    We are delighted to assist you with this.

    Cheers!

    This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.