• 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

Help with Minimum 2.0 theme: page-title.php

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 › Help with Minimum 2.0 theme: page-title.php

This topic is: resolved
  • This topic has 8 replies, 3 voices, and was last updated 13 years, 1 month ago by purplepatriot.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • February 27, 2013 at 11:52 am #23132
    centologix
    Member

    hi-

    i have the tagline and button showing up on my front page, using this code:

    if ( is_home() ) {
    echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_404() ) {
    echo '<div id="page-title"><div class="wrap"><p>' . __( 'Ooops!', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></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' ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></p></div></div>';
    }
    elseif ( is_singular( 'page' ) ) {
    echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></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' ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></p></div></div>';
    }
    else {
    echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></p></div></div>';
    }</code>
    

    how do i:

    1. make it so that this does not show up for certain pages (say a contact page)?

    2. how do i move it around the page?  right now it is showing up on all pages just above the in-page title.  of course, i want to keep it in the same position for the front page.

    thank yo

    April 12, 2013 at 8:53 am #34997
    purplepatriot
    Member

    hi centologix,

    I'm just getting back into the forums after the switchover.  I was dealing with this issue recently, so thought I would share my experience.

    Say that your contact page has id=42.  Then, you could add this code after the last 'elseif' block but before the final 'else' block, so it would look something like:

    ...
    elseif ( is_author() || is_category() || is_date() || is_search() || is_tag() ) {
    echo '</code>
    <div id="page-title"><div class="wrap">' . __( 'From the Blog', 'minimum' ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></div></div>';
    }
    elseif ( is_page('42') ) {
    echo '';
    }
    else {
    echo '<div id="page-title"><div class="wrap">' . esc_html( get_bloginfo( 'description' ) ) . '<a class="page-title-button" href="#">' . __( 'Shop Now', 'minimum' ) . '</a></div></div>';
    }

    Give that a try and let me know how it works.


    Eric @ Coolwater Creative – “Take a leap. Make a splash. Ripple the pond.”
    “Never sacrifice the permanent on the altar of the immediate.” – Give back and help out in the forums.

    April 24, 2013 at 3:20 pm #37467
    kwikkopydc
    Member

    Trying to accomplish same thing. Using is_page('[id]') doesn't seem to work for me. Any other ideas?

    April 25, 2013 at 10:46 am #37676
    purplepatriot
    Member

    Hi kwikkopydc - try removing the single quotes around the page id number.


    Eric @ Coolwater Creative – “Take a leap. Make a splash. Ripple the pond.”
    “Never sacrifice the permanent on the altar of the immediate.” – Give back and help out in the forums.

    April 25, 2013 at 1:04 pm #37704
    kwikkopydc
    Member

    Hi purplepatriot -- no change when the single quotes are removed

    http://animatedcatalogs.com/features-and-benefits/

     

    April 26, 2013 at 7:59 am #37834
    purplepatriot
    Member

    Yeah, I figured that would be the case, but needed to rule it out. Can you post your entire page-title.php here so I can review it? Thanks!


    Eric @ Coolwater Creative – “Take a leap. Make a splash. Ripple the pond.”
    “Never sacrifice the permanent on the altar of the immediate.” – Give back and help out in the forums.

    April 26, 2013 at 8:04 am #37835
    purplepatriot
    Member

    Actually, try this first. Take the elseif conditional with the specific page-id (is_page( XX ) ) and move it just above the elseif (is_singular( 'page' )) condition. Since your page matches the is_singular('page') condition first, it leaves the loop at that point and doesn't get to the page-specific condition.


    Eric @ Coolwater Creative – “Take a leap. Make a splash. Ripple the pond.”
    “Never sacrifice the permanent on the altar of the immediate.” – Give back and help out in the forums.

    April 26, 2013 at 8:19 am #37839
    kwikkopydc
    Member

    I figured it was something like that... this solved my issue.

    For the record, the solution was without the single quotes and moving the is_page([#]) before the is_singular( 'page') in the sequence of else if statements. Thx.

    April 26, 2013 at 8:24 am #37842
    purplepatriot
    Member

    Glad I could help!


    Eric @ Coolwater Creative – “Take a leap. Make a splash. Ripple the pond.”
    “Never sacrifice the permanent on the altar of the immediate.” – Give back and help out in the forums.

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