• 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 to change page-title.php formatting controls?

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 to change page-title.php formatting controls?

This topic is: resolved

Tagged: change, conditional formating, Minimum theme, page-title

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by MM.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 21, 2013 at 2:14 pm #22043
    MM
    Member

    Hi there,

     

    On http://www.hayleywebb.com... (minimum theme) I'm trying to change page-title.php so the following happens:

     

    On blog category pages > page-title = name of category

    On singular pages > page-title = name of page (eg. Contact, About)

    On blog post page > page-title = name of post title

     

    Current page-title.php code is displayed below.  Anyone know how to achieve that?

    Thanks!

     

    <?php

    if ( is_home() ) {
    echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '</p></div></div>';
    }
    elseif ( is_404() ) {
    echo '<div id="page-title"><div class="wrap"><p>' . __( 'Ooops!', 'minimum' ) . '</p></div></div>';
    }
    elseif ( is_post_type_archive( 'portfolio' ) || is_singular( 'portfolio') ) {
    echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the Portfolio', 'minimum' ) . '</p></div></div>';
    }
    elseif ( is_singular( 'page' ) ) {
    echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '</p></div></div>';
    }
    elseif ( is_author() || is_category() || is_date() || is_search() || is_singular() || is_tag() ) {
    echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the Blog', 'minimum' ) . '</p></div></div>';
    }
    else {
    echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '</p></div></div>';
    }

    February 27, 2013 at 9:01 am #23093
    firstname_galo
    Member

    I would like to know how to do this as well.

    Hayley, I like the website so far. I have a couple of questions for you:

    How did you go about changing the the home featured icons to the yoga icon, heart, email icon, etc.
    Where can I find the Subscribe and Connect widget with all the social media icons.
    Finally, how did you move the tagline header (Push your Limits. Embrace your Passion. Make things Happen.) beneath you main slider on the homepage?

    Thanks. Hopefully someone knows how  to change the page title controls.

    February 28, 2013 at 8:30 am #23266
    MM
    Member

    Hi Firstname_galo

    Thanks and here's quick answers:

     

    1) Check out this thread:

    Minimum Theme – How to change the Homepage social icon image and link?

    2) Think the slider is just above the text in the appearance > widgets section.

     

    Good luck!

     

     

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 2023 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