Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #852708

    seanmanion
    Participant

    Hello,

    I have a “news” plugin which creates custom post types.
    Currently, the header of the article is the same as the header of the blog posts.
    My client is requesting that the two have different titles so the user knows what section of the website they are on.

    Example:
    Clicking http://indevia.mediumbrandholdings.com/about-us/in-the-news/ should have the “in the news” header; not the header which appears on http://indevia.mediumbrandholdings.com/accounting-articles/.

    Where should I edit this? I’ve tried editing “_landmark-header.php”, but was not successful.

    Any suggestions?

    #852950

    Jade
    Moderator

    Hi Sean,

    I am not sure what you are trying to achieve or have you already did what you’re aiming to do?

    I checked the page: http://indevia.mediumbrandholdings.com/about-us/in-the-news/ and the header text in that page is already In The News.

    Kindly give us more clarifications

    #852953

    seanmanion
    Participant

    My fault! If you click on any of the “in the news” articles, then you’ll be taken to a ‘news page” with a “blog header”

    I am wondering if there is a way to edit _landmark-header.php so that this custom post type can have a unique header.

    Any suggestions?

    #853138

    Rue Nel
    Moderator

    Hello There,

    Since you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/_LANDMARK-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Handles content output of large headers for key pages such as the blog or
    // search results.
    // =============================================================================
    
    $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );
    $disable_filters    = get_post_meta( get_the_ID(), '_x_portfolio_disable_filtering', true );
    
    ?>
    
    <?php if ( is_home() && x_get_option( 'x_integrity_blog_header_enable' ) == '1' ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_blog_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_blog_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( is_search() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll see everything we could locate for your search of ", '__x__' ); echo '<strong>&ldquo;'; the_search_query(); echo '&rdquo;</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_category() || x_is_portfolio_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( is_tag() || x_is_portfolio_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( is_404() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "You blew up the Internet. ", '__x__' ); ?></span></p>
      </header>
    
    <?php elseif ( is_year() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_month() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_day() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F j, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( x_is_portfolio() ) : ?>
      <?php if ( $disable_page_title != 'on' || $disable_filters != 'on' ) : ?>
    
        <header class="x-header-landmark x-container max width">
          <?php if ( $disable_page_title != 'on' ) : ?>
            <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
          <?php endif; ?>
          <?php x_portfolio_filters(); ?>
        </header>
    
      <?php endif; ?>
    <?php elseif ( x_is_shop() && x_get_option( 'x_integrity_shop_header_enable' ) == '1' ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_shop_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_shop_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( x_is_buddypress() ) : ?>
      <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
        <header class="x-header-landmark x-container max width">
          <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
          <p class="p-landmark-sub"><span><?php echo x_buddypress_get_the_subtitle(); ?></span></p>
        </header>
    
      <?php endif; ?>
    
    <?php elseif ( is_single('news') ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span>In the News</span></h1>
        <p class="p-landmark-sub"><span>Add some text here or completely remove this line</span></p>
      </header>
    
    <?php endif; ?>

    3] Save the file named as _landmark-header.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/integrity

    Please let us know if this works out for you.

    #854329

    seanmanion
    Participant

    Testing now

    #854338

    Thai
    Moderator

    Let us know how it goes!

    #854345

    seanmanion
    Participant

    Sorry, The suggestion provided above is removing the header from the blog roll (undesired).

    Blog Roll:
    http://indevia.mediumbrandholdings.com/accounting-articles/

    In The News Custom Post Roll:
    http://indevia.mediumbrandholdings.com/accounting-articles/double-entry-accounting/

    In The News Article:
    http://indevia.mediumbrandholdings.com/news/indevia-remembers-fred-deluca/

    Should any change be made to:
    <?php elseif ( is_single(‘news’) ) : ?>

    Is ” is_single(‘news’) ” the right code to enter?

    Can I give any other information to help this be achieved?

    The news posts are generated using:
    https://wordpress.org/plugins/sp-news-and-widget/

    #854474

    Rad
    Moderator

    Hi there,

    Please change it into this,

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/_LANDMARK-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Handles content output of large headers for key pages such as the blog or
    // search results.
    // =============================================================================
    
    $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );
    $disable_filters    = get_post_meta( get_the_ID(), '_x_portfolio_disable_filtering', true );
    
    ?>
    
    <?php if ( is_home() && x_get_option( 'x_integrity_blog_header_enable' ) == '1' ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_blog_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_blog_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( is_singular('news') ) : ?>
    
    <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span>In the News</span></h1>
        <p class="p-landmark-sub"><span>Add some text here or completely remove this line</span></p>
    </header>
    
    <?php elseif ( is_search() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll see everything we could locate for your search of ", '__x__' ); echo '<strong>&ldquo;'; the_search_query(); echo '&rdquo;</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_category() || x_is_portfolio_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( is_tag() || x_is_portfolio_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( is_404() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "You blew up the Internet. ", '__x__' ); ?></span></p>
      </header>
    
    <?php elseif ( is_year() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_month() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_day() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F j, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( x_is_portfolio() ) : ?>
      <?php if ( $disable_page_title != 'on' || $disable_filters != 'on' ) : ?>
    
        <header class="x-header-landmark x-container max width">
          <?php if ( $disable_page_title != 'on' ) : ?>
            <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
          <?php endif; ?>
          <?php x_portfolio_filters(); ?>
        </header>
    
      <?php endif; ?>
    <?php elseif ( x_is_shop() && x_get_option( 'x_integrity_shop_header_enable' ) == '1' ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_shop_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_shop_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( x_is_buddypress() ) : ?>
      <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
        <header class="x-header-landmark x-container max width">
          <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
          <p class="p-landmark-sub"><span><?php echo x_buddypress_get_the_subtitle(); ?></span></p>
        </header>
    
      <?php endif; ?>
    <?php endif; ?>

    Hope that helps.

    #855112

    seanmanion
    Participant

    Sorry, few issues with that suggestion:

    1- The blog roll header’s background is not appearing.
    2- The “news” post has an extra header

    Here is a video giving more details:
    https://www.dropbox.com/s/wb8v16fvb8u9tz4/Landmark%20for%20custom%20post.mov?dl=0

    Much Appreciated,
    Sean

    #855299

    Jade
    Moderator

    Hi Sean,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #855885

    seanmanion
    Participant
    This reply has been marked as private.
    #856268

    Paul R
    Moderator

    Hi Sean,

    Thanks for providing your login credentials.

    1. Please change the code to this.

    
    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/_LANDMARK-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Handles content output of large headers for key pages such as the blog or
    // search results.
    // =============================================================================
    
    $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );
    $disable_filters    = get_post_meta( get_the_ID(), '_x_portfolio_disable_filtering', true );
    
    ?>
    
    <?php if ( is_home() && x_get_option( 'x_integrity_blog_header_enable' ) == '1' ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_blog_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_blog_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( is_singular('news') ) :  ?>
    <?php /*
    <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span>In the News</span></h1>
        <p class="p-landmark-sub"><span>Add some text here or completely remove this line</span></p>
    </header>
    */ ?>
    <?php elseif ( is_search() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll see everything we could locate for your search of ", '__x__' ); echo '<strong>&ldquo;'; the_search_query(); echo '&rdquo;</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_category() || x_is_portfolio_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( is_tag() || x_is_portfolio_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( is_404() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "You blew up the Internet. ", '__x__' ); ?></span></p>
      </header>
    
    <?php elseif ( is_year() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_month() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_day() ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F j, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( x_is_portfolio() ) : ?>
      <?php if ( $disable_page_title != 'on' || $disable_filters != 'on' ) : ?>
    
        <header class="x-header-landmark x-container max width">
          <?php if ( $disable_page_title != 'on' ) : ?>
            <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
          <?php endif; ?>
          <?php x_portfolio_filters(); ?>
        </header>
    
      <?php endif; ?>
    <?php elseif ( x_is_shop() && x_get_option( 'x_integrity_shop_header_enable' ) == '1' ) : ?>
    
      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_shop_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_shop_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( x_is_buddypress() ) : ?>
      <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
        <header class="x-header-landmark x-container max width">
          <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
          <p class="p-landmark-sub"><span><?php echo x_buddypress_get_the_subtitle(); ?></span></p>
        </header>
    
      <?php endif; ?>
    <?php endif; ?>
    

    2. You can add this under Custom > CSS in the Customizer.

    
    .blog .x-header-landmark {
        padding: 50px 0;
        background: #1e73be;
        width: 100%;
        max-width: 100%;
    }
    

    Hope that helps.

    #856653

    seanmanion
    Participant

    Sorry, Now the original issue persists:

    The original issue:
    The “news post” should have a different landmark header.
    I see that you’ve updated the rule, but do not see it take effect.
    http://prntscr.com/ali3u8

    #856821

    Paul R
    Moderator

    Hi,

    Sorry about that.

    I put back the news landmark and remove the financial tips header in the news.

    Kindly change the text for the news in _LANDMARK-HEADER.PHP

    Thanks

    #857431

    seanmanion
    Participant

    Looking Good! Thanks for all the help! 😀