• Hello
    I have the Divi theme from Elegant Themes and would like to know how to remove ‘Skills’ and ‘Posted on” from the bottom of a project page.

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    Add below code in custom css

    .et_project_meta_title {
    display: none;
    }
    .et_full_width_portfolio_page .et_project_meta {
    display: none;}

    I have used the code at https://abhifashionphotography.in/ and it works

    Thanks

    If you want to change the text rather than remove it, then you can do this:

    Create a child theme of DIvi (see here for how and why to do this https://www.elegantthemes.com/blog/resources/wordpress-child-theme-tutorial) and make sure this is activated.

    Then add a new file in the root directory of your child theme called functions.php (make sure to have <?php as the first line.

    Then open the functions.php file in the Divi root directory and find the function called et_pb_portfolio_meta_box()

    Copy all of this and paste into the functions.php in your child theme. Then locate the word ‘Skills’ and change it to what you would like it to say.

    So it should look something like this:


    <?php

    if ( ! function_exists( 'et_pb_portfolio_meta_box' ) ) :
    function et_pb_portfolio_meta_box() { ?>
    <div class="et_project_meta">
    <strong class="et_project_meta_title"><?php echo esc_html__( 'Categories', 'Divi' ); ?>
    <p><?php echo get_the_term_list( get_the_ID(), 'project_tag', '', ', ' ); ?></p>

    <strong class="et_project_meta_title"><?php echo esc_html__( 'Posted on', 'Divi' ); ?>
    <p><?php echo get_the_date(); ?></p>
    </div>
    <?php }
    endif;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove 'Skills' & 'Posted on'’ is closed to new replies.