• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How can I change the text "Article by" to "Courses by" only in the course pages?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How can I change the text "Article by" to "Courses by" only in the course pages?

This topic is: not resolved

Tagged: editing css, editing php

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by Victor Font.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 20, 2015 at 3:04 pm #148593
    totoromaum
    Member

    Hi, I want to change the text "Article by" to "Courses by" only in course pages but not in general posts.
    How can I change it by editing php or css?
    And will I lose what I will have changed if I update theme?
    I would appreciate it if you could help me.

    I heard I could change it by editing php as follows but I need to know conditional tag because I want to change it only in course pages.

    //* Customize the entry meta in the entry footer
    add_filter( 'genesis_post_meta', 'education_post_meta_filter' );
    function education_post_meta_filter($post_meta) {
    $post_meta = 'Article by [post_author_posts_link] [post_categories before=" / "] [post_tags before=" / "] [post_comments] [post_edit]';
    return $post_meta;
    }

    Thank you in advance

    - the theme I use : Education Pro

    - the Image for reference

    changing the text

    - The site URL : http://englishjump.net/courses/movie-english/

    http://englishjump.net/courses/movie-english/
    April 21, 2015 at 5:19 am #148653
    Victor Font
    Moderator

    You should probably use is_category() if you are dealing with posts: https://codex.wordpress.org/Function_Reference/is_category


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 21, 2015 at 5:28 am #148655
    totoromaum
    Member

    Thank you for the reply, Victor Font.
    Can I edit as follow if I want to change the text "Article by" to "Courses by" only in Courses slug?

    //* Customize the entry meta in the entry footer
    add_filter( ‘genesis_post_meta’, ‘education_post_meta_filter’ );
    function education_post_meta_filter($post_meta) {
    $post_meta = ‘Courses by [post_author_posts_link] [post_categories before=" / "] [post_tags before=" / "] [post_comments] [post_edit]‘;
    return $post_meta;
    }
    <?php is_category( 'Courses' ); ?>

    April 21, 2015 at 4:20 pm #148728
    Victor Font
    Moderator

    No, use something like this:

    //* Customize the entry meta in the entry footer
    add_filter( 'genesis_post_meta', 'education_post_meta_filter' );
    function education_post_meta_filter($post_meta) {
    	if ( is_category( "courses" ) ) {
    		$post_meta = 'Course by [post_author_posts_link] [post_categories before=" / "] [post_tags before=" / "] [post_comments] [post_edit]';
    	} else {
    		$post_meta = 'Article by [post_author_posts_link] [post_categories before=" / "] [post_tags before=" / "] [post_comments] [post_edit]';
    	}
    	return $post_meta;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble