Category lyout

  1. I would like to layout category pages the same way it is on main BLOG page, so the image is on the right and the excerpt on the left…

  2. I can not see category title on Category archive, only “Category Archive” text

Hello There,

Thanks for writing in!

1.) If you are using Ethos stack, you will have the same layout for the blog index and archive pages. You can check out our demo here:
http://demo.theme.co/ethos-1/
http://demo.theme.co/ethos-1/category/fashion/

You can change the stack by going to X > Launch > Options > Stack

2.) Please go to Posts > Categories and edit each of your category. You will have to insert Category Archive Title. If this is left blank, “Category Archive” is the default text.

Hope this helps.

  1. I use STACKm but:
    http://2017.totalclean.co.uk/blog/
    and http://2017.totalclean.co.uk/topic/news/

  2. Why is ir not using the default one?

Hello There,

Thanks for updating in!

1.) This issue happen because you have inserted a custom css that only changed your blog index. You will have to update is and include the archive pages as well.

.blog .x-main .hentry > .entry-featured,
.archive .x-main .hentry > .entry-featured{
	width:50%;
}

.blog .x-main .hentry > .entry-featured .entry-thumb,
.archive .x-main .hentry > .entry-featured .entry-thumb{
	background-size:contain;
	background-position-y:0;
}

.blog .x-main .hentry.has-post-thumbnail > .entry-wrap,
.archive .x-main .hentry.has-post-thumbnail > .entry-wrap{
	width:50%;
}

2.) Because that’s how we have design the archive page in this stack. You will have to insert Archive title to add some attention to it.

Hope this helps.

Thanks for this.

Another issue.

There is no H1 title tag on the main blog page…

Should I modify the theme files to have this or is there another way of doing this?

Hello There,

Thanks for updating in! There is nothing to modify. The h1 title should appear on the blog and archive pages. It is located in the landmark header. Please edit your blog page and find the page settings. The page title must be enabled.

I can see that you are using a child theme, did you have any modifications to the landmark header? Please post the contents of the _landmark-header.php file in your next reply. Maybe your customizations is the reason why the h1 title is not showing up in your blog and archive pages.

Please let us know how it goes.

The only landmark files are in parent theme - no customization made:

Hi there,

Would you mind providing your admin and FTP details in a Secure Note so that we can check your setup?

Thank you.

added secure info to the latest reply.

Hi there,

Ethos doesn’t have a landmark on its blog index page since it’s the place where the post slider is. I checked Ethos landmark code and it doesn’t include the condition is_home(), so yes, it’s intentionally made that way. But if you wish to display it, then you’ll have to follow this

  1. Install a child theme and activate it
  2. Create this file in your child theme \framework\legacy\cranium\headers\views\ethos_landmark-header.php
  3. Edit that file and put this content replacing what’s in there
<?php

// =============================================================================
// VIEWS/ETHOS/_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 );

?>


    <?php if ( is_home() ) : ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span>BLOG TITLE</span></h1>
      </header>

    <?php endif; ?>
      
<?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?>
  <?php if ( is_page() && $disable_page_title == 'on' ) : ?>
  <?php else : ?>

    <?php if ( x_is_shop() || x_is_product() ) : ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_ethos_shop_title' ); ?></span></h1>
      </header>

    <?php elseif ( x_is_bbpress() ) : ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1>
      </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>
        </header>

      <?php endif; ?>
    <?php elseif ( is_page() ) : ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1>
      </header>

    <?php elseif ( x_is_portfolio_item() ) : ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
      </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>
      </header>

    <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>

      <?php

      $meta  = x_get_taxonomy_meta();
      $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );

      ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
      </header>

    <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?>

      <?php

      $meta  = x_get_taxonomy_meta();
      $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' );

      ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
      </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>
      </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>
      </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>
      </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>
      </header>

    <?php elseif ( x_is_portfolio() ) : ?>

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_portfolio_title' ); ?></span></h1>
      </header>

    <?php endif; ?>

  <?php endif; ?>
<?php endif; ?>

Replace the BLOG TITLE text :slight_smile:

  1. Save and upload it.

Thanks!

I did it, but this is not working. :frowning:

In that case, please provide us your ftp login in private reply.

Secure note saved.

Hi there,

Sorry but the file directory should be /framework/legacy/cranium/headers/views/ethos and the file name should be _landmark-header.php.

Kindly restructure the directory and rename the file.

Let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.