• Hello,
    i need Help. I just read all topics about this problem but in my template (is a free template called engrave) I don’t find the php part where I can change the option. In the function there isn’t and I don’t have (or i don’t found) the category.php

    I want to eliminate category archives before the name. http://www.recensionigustose.it/recensioni-gustose/
    Is a h1 title i know.

    Someone could help me please?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Smartola,

    You can make this edit from engrave-lite\admin\main\options\1.general-settings.php

    Thanks

    Thread Starter Smartola

    (@smartola)

    Thank you! Could you help me again? What I have to change in the code?

    Hey Smartola,

    Find the function thinkup_title_select() from the engrave-lite\admin\main\options\1.general-settings.php. Replace the function with the following code:

    function thinkup_title_select() {
    global $post;
    
    	if ( is_page() ) {
    		printf( __( '%s', 'lan-thinkupthemes' ), get_the_title() );
    	} elseif ( is_attachment() ) {
    		printf( __( 'Blog Post Image: %s', 'lan-thinkupthemes' ), esc_attr( get_the_title( $post->post_parent ) ) );
    	} else if ( is_single() ) {
    		printf( __( '%s', 'lan-thinkupthemes' ), get_the_title() );
    	} else if ( is_search() ) {
    		printf( __( 'Search Results: %s', 'lan-thinkupthemes' ), get_search_query() );
    	} else if ( is_404() ) {
    		printf( __( 'Page Not Found', 'lan-thinkupthemes' ) );
    	} else if ( is_category() ) {
    		printf( __( '%s', 'lan-thinkupthemes' ), single_cat_title( '', false ) );
    	} elseif ( is_tag() ) {
    		printf( __( 'Tag Archives: %s', 'lan-thinkupthemes' ), single_tag_title( '', false ) );
    	} elseif ( is_author() ) {
    		the_post();
    		printf( __( 'Author Archives: %s', 'lan-thinkupthemes' ), get_the_author() );
    		rewind_posts();
    	} elseif ( is_day() ) {
    		printf( __( 'Daily Archives: %s', 'lan-thinkupthemes' ), get_the_date() );
    	} elseif ( is_month() ) {
    		printf( __( 'Monthly Archives: %s', 'lan-thinkupthemes' ), get_the_date( 'F Y' ) );
    	} elseif ( is_year() ) {
    		printf( __( 'Yearly Archives: %s', 'lan-thinkupthemes' ), get_the_date( 'Y' ) );
    	} elseif ( is_post_type_archive( 'portfolio' ) ) {
    		printf( __( 'Portfolio', 'lan-thinkupthemes' ) );
    	} elseif ( is_blog() ) {
    		printf( __( 'Blog', 'lan-thinkupthemes' ) );
    	} else {
    		printf( __( '%s', 'lan-thinkupthemes' ), get_the_title() );
    	}
    }

    Hope this will help.

    Thanks

    Thread Starter Smartola

    (@smartola)

    It give me this error Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /web/htdocs/www.recensionigustose.it/home/blog/wp-content/themes/engrave-lite/admin/main/options/01.general-settings.php on line 360

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

The topic ‘Remove Category Archives’ is closed to new replies.