WordPress.org

Forums

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

  1. eqhes
    Member
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Features by WooThemes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.