• Resolved webshaun

    (@webshaun)


    I’m trying to change the page title “Products” but cannot locate the proper location to edit this text. I’ve spent hours looking around source code but cannot find it. Where do I look to change the page title for woocommerce’s shop page?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    I see from your page that you managed to change the page title to “Courses”.

    Thread Starter webshaun

    (@webshaun)

    I’m pretty sure I did it in a non-upgrade-safe way. Not sure yet. I have to go back and figure out what I did. I ran out of time.

    Thread Starter webshaun

    (@webshaun)

    Here’s the code I ended up using. Snippets plugin is the easiest way to accomplish this stuff w/o creating a child theme.

    `
    function woo_custom_prod_label( $args ){
    $args[‘labels’] = array(
    ‘name’ => __( ‘Courses’ ),
    ‘singular_name’ => __( ‘Course’ ),
    ‘menu_name’ => _x( ‘Courses’, ‘Admin menu name’ ),
    ‘add_new’ => __( ‘Add Course’ ),
    ‘add_new_item’ => __( ‘Add New Course’ ),
    ‘edit’ => __( ‘Edit’ ),
    ‘edit_item’ => __( ‘Edit Course’ ),
    ‘new_item’ => __( ‘New Course’ ),
    ‘view’ => __( ‘View Course’ ),
    ‘view_item’ => __( ‘View Course’ ),
    ‘search_items’ => __( ‘Search Courses’ ),
    ‘not_found’ => __( ‘No Courses found’ ),
    ‘not_found_in_trash’ => __( ‘No Courses found in trash’ ),
    ‘parent’ => __( ‘Parent Course’ )
    );
    return $args;
    }
    add_filter( ‘woocommerce_register_post_type_product’, ‘woo_custom_prod_label’ );

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing WooCommerce page title “Products”’ is closed to new replies.