WordPress.org

Ready to get started?Download WordPress

Forums

Features by WooThemes
[resolved] Feature post title (2 posts)

  1. eqhes
    Member
    Posted 11 months ago #

    Hi,

    I'm using Features v1.4.2. On a single feature page I get this kind of title: "Feature | My feature title". How can I edit or remove "Feature | "?

    Thank you in advance.

    Regards,
    --
    David

    https://wordpress.org/plugins/features-by-woothemes/

  2. eqhes
    Member
    Posted 11 months ago #

    I'm using the "Appply" Woothemes theme, so I solved this copying /appply/includes/theme-functions.php into /child-theme/includes/theme-functions.php. On the child theme file I replaced this code:

    } elseif ( is_single() && get_post_type( $post->ID ) != "post" ) {
    		$title = ucfirst( get_post_type( $post->ID ) ) . ' | ' . get_the_title();
    	}

    By this other:

    } elseif ( is_single() && get_post_type( $post->ID ) != "post" ) {
    		$title = ucfirst( get_post_type( $post->ID ) ) . ' | ' . get_the_title();
    		$post_type = ucfirst( get_post_type( $post->ID ) );
    		if( $post_type === "Feature" ){
    			$title = get_the_title();
    		}
    	}

    Maybe it's not the best approach, but this works as expected and working as WordPress suggests for child themes.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.