Home Forums Pro Themes eCommerce Market Pro Remove or change dynamic page title

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  wensolutions 2 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #95450

    alireza_hsi
    Participant

    Hello.
    I use the free version.
    in the shop page in the wrong title “Archives: Products”, I want to change this but can’t find any option.
    where is this title for change?

    Thank you

    #95481

    wensolutions
    Keymaster

    Hello @alireza_hsi,

    To edit the title you need to go through the child theme.

    To know how you can create and activate the child theme go through the link below:

    https://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme in your child theme functions.php file add below-given code.

    function ecommerce_market_remove_cat_titles($title) {
    
        if( is_post_type_archive( 'product' ) ){
        	$title = 'Shop';
        }
    
        return $title;
    
    }
    add_filter( 'get_the_archive_title', 'ecommerce_market_remove_cat_titles' );

    Hope this helps.

    Thank you.

    #95866

    alireza_hsi
    Participant

    Thank you
    I try to create a child theme but I had an error for syntaxes code.
    no worries I should get help from a theme editor.
    it isn’t simple.
    it is a theme base issue.

    #95897

    wensolutions
    Keymaster

    Hello @alireza_hsi,

    Yes, please create the child theme and paste the code provided above in your child theme’s functions.php file.

    Thank you.

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

You must be logged in to reply to this topic.