• 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

Display Parent Page Titles on Child 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 › Display Parent Page Titles on Child Pages

This topic is: not resolved

Tagged: Child Pages, page-title, Parent Page, parent title page

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 2 months ago by kathyosborne.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 18, 2017 at 1:43 pm #199625
    kathyosborne
    Participant

    I would like to have my child pages display the parent page at the top (without using breadcrumbs).

    Is this possible?
    Thanks!
    Kathy

    January 18, 2017 at 2:43 pm #199627
    Victor Font
    Moderator

    It can be done, but it requires custom PHP work: https://www.fldtrace.com/how-to-display-parent-page-title-in-wordpress


    Regards,

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

    January 19, 2017 at 8:02 am #199653
    kathyosborne
    Participant

    Thank you! I will check it out.
    kathy

    January 24, 2017 at 10:57 am #199938
    kathyosborne
    Participant

    I'm not sure which template file I would edit, but I did find this fucntions code, but I'm not sure if it could work with Genesis? And if so what I would place in there for body_class, etc...

    add_filter('body_class','body_class_section');
    function body_class_section($classes) {
    global $wpdb, $post;
    if (is_page()) {
    if ($post->post_parent) {
    $parent = end(get_post_ancestors($current_page_id));
    } else {
    $parent = $post->ID;
    }
    $post_data = get_post($parent, ARRAY_A);
    $classes[] = 'parent-' . $post_data['post_name'];
    }
    return $classes;
    }

  • 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