With Commerce Kickstart I would like to use a node (e.g. node/20) for my home page and display the page title (h1) and body content.

However, after updating my 'Default front page' within 'Site Information' (admin/config/system/site-information) the resultant home page does not show the title (it only shows the body text)?

Is there anyway to make it show the title (h1) and body content as it does for say the 'About' page.

Please note, if I set the 'About' page to be the default front page then again its title is not display when used as the front page.

Any guidance would be greatly appreciated!

Comments

vaccinemedia’s picture

Did you ever find a solution to this?

mikee’s picture

HI vaccinemedia,

Unfortunately not and this project has been put on hold for the moment. If we do get a solution I'll update. In the meantime, if you manage to get this resolved would be great if you'd let me know.

Many thanks,

Mikee

vaccinemedia’s picture

I have used delta and delta blocks to turn the page title into a block but it's not the best / most ideal solution to have the title as a block. It's treating the symptom and not the cause ;) You then have 2 choices: manage it using block visibility and only have it appearing where you want it to or you can hide the title in the theme settings site wide and then have the title block appearing site wide. Let me know if that works for you!

jamesh81’s picture

I'm having this problem too - I haven't found a suitable way around it yet, would be great if a solution/fix was found to return normal behaviour.

Infinitee’s picture

Unfortunately, ALL node Titles are forced to be display as {h2} when they should be {h1} for best SEO results. I tried changing this in views but, it would not take.

Poieo’s picture

Took me awhile to find this...

Commerce Kickstart Block module hides the page title on the front page and on taxonomy term pages with the following:

/**
 * Implements hook_preprocess_page().
 */
function commerce_kickstart_block_preprocess_page(&$variables) {
  if (drupal_is_front_page()) {
    // Remove the title from this page.
    $variables['title'] = '';
  }
  if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) {
    // Remove collection_taxonomy_term view title.
    $variables['title'] = '';
 }
}

It doesn't make a whole lot of sense for a module to handle this. Why not move this to the theme layer instead?

To get your titles back you must disable the module.

xax’s picture

@poieo, many thanks for tracking down the source of this, it had been bugging me for ages now! All the sites I build have a 'basic page' node as home (so far never met a client who needed a list of blog posts..), and I have run css circles to display the block title on but not on the other pages to solve this.

Thanks to you I just went to the commerce kickstart block module, greyed out the first 'if' like so:

/* if (drupal_is_front_page()) {
    // Remove the title from this page.
    $variables['title'] = '';
  } */

and hey presto my title appeared in all its styled glory! (by the way, this was in Com Kick 2.12, same issue, same solution..)

Many many thanks! And please, wonderful Commerce Kickstart friends, I love your installation profile but please please remove this 'bug'. ..

lsolesen’s picture

Related to and a possible duplicate of #2118059: Missing H1 / Title on default taxonomy view

tfranz’s picture

@Poieo: Thank you for the solution!
@Kickstarters: please remove/change this behavior when front page set to a node … thank you!

This works for me:

  if (arg(0) != 'node' && drupal_is_front_page()) {
    // Remove the title from this page.
    $variables['title'] = '';
  }
lsolesen’s picture

mglaman’s picture

Category: Support request » Bug report

Marking to bug, we shouldn't hide title if set to node (or only our expected default.)

lsolesen’s picture

rszrama’s picture

Status: Needs review » Closed (outdated)

Commerce Kickstart 2.x is in minimal maintenance mode. Closing out all outdated tickets now to maintain focus on Commerce Kickstart 3.x.