Hello,

at first.. thanks for this incredible theme.

When I create a account on my page this page is called "Home" (see picture). How can I change that?

Best regards
Frank

Files: 
CommentFileSizeAuthor
#15 Bildschirmfoto-2.png18.82 KBfraweg
#13 1.png90.25 KBfraweg
#13 2.png95.29 KBfraweg
#13 3.png94.79 KBfraweg
Bildschirmfoto-1.png27 KBfraweg

Comments

Status:Active» Needs work

Hmm, can you post the html code for the title? So we can get an idea which part of the site is generating this title? I'm pretty sure its the page title but it shouldn't do that.

Hello,

thanks for your fast answer...Here is the code:

</head>
<body class="not-front with-slideshow" >
  <div id="skip-link">
    <a href="#main-content" class="element-invisible element-focusable">Skip to main content</a>
  </div>
    <div id="header">
  <div class="section">
    <div id="site-logo-and-name">
              <a href="/..../" title="Home" rel="home" id="logo">
          <img src="http://...sites/default/files/....png" alt="Home" />
        </a>
          </div> <!-- /#site-logo-and-name -->
          <div id="main-menu" class="navigation">
              </div> <!-- /#main-menu -->
  </div> <!-- /.section -->
</div> <!-- /#header -->
<div id="page-wrapper"><div id="page">
      <div id="slideshow">
        <div class="region region-slideshow">
    <div id="block-imageblock-2" class="block block-imageblock first odd">
    <h2 class="block-title">Front image</h2>

Thank you for any help!
Frank

Is the title "Home" on other pages as well? or only the create account page?

No the "Home" title is only shown on the registration page. In the settings "Show page title on front page" of the theme I have disabled that the home button is shown on the front-page. If I enable it, it is shown on the front-page too.

Thanks a lot for your fast support!
Frank

Hello Arsdad,

did you have an Idea how to hide/change the "Home"-Title on the account creation page?

Best regards
Frank

am I alone with this issue?

Best regards
Frank

If you need to change the page-title , you can do it by preprocessing the page.

For eg: function themename_preprocess_page(&$vars) {

if((arg(0)=='user')&&(arg(1)=='login')){
drupal_set_title('Log in');
}

drupal_set_title can be used to change the page title.

Thanks chitz07 for your help!

When I put this:

function andromeda_preprocess_page(&$vars) {
if((arg(0)=='user')&&(arg(1)=='login')){
drupal_set_title('Log in');
}
}

at the end of template.php, I get a blank site with nothing :-(

Do I something wrong?
Best regards
Frank

That will work only if your path is user/login for the login page.
Try :
function andromeda_preprocess_page(&$vars) {

if(arg(0)=='user'){
drupal_set_title('Log in');
}
}

And there shouldn't be more than one preprocess_page function.

Hello,

thanks a lot for your answer. This code did not change the "Home" title on the register site for me. Maybe I do not understand enough for this ... To place this code in the template.php is right?

Best regards

yes, inside template.php
can you upload a screen shot of the full page?

The screenshot should contain the url ..

StatusFileSize
new94.79 KB
new95.29 KB
new90.25 KB

Hello chitz07,

Thanks for your fast answer. Here are the screen-shots with the URL.
I hope this make it a little bit more clear.

Thanks a lot for your help!
Frank

Try this

<?php
function andromeda_preprocess_page(&$vars) {
  if ((
arg(0)=='user')&&(arg(1)=='login')){
    
drupal_set_title('Log in');
  }
  elseif ((
arg(0)=='user')&&(arg(1)=='register')){
   
drupal_set_title('Register');
  }
}
?>

StatusFileSize
new18.82 KB

Hello chitz07,

thanks so much for your support!

I tested your code in my theme/subtheme template an got a white screen. After that I put this code:

if ((arg(0)=='user')&&(arg(1)=='login')){
     drupal_set_title('Log in');
  }
  elseif ((arg(0)=='user')&&(arg(1)=='register')){
    drupal_set_title('Register');
  } 

at the end of my theme template.php in the function
"function andromeda_preprocess_page(&$variables)"
and it works.

So I have this code:

function andromeda_preprocess_page(&$variables) {
  if (!$GLOBALS['user']->uid) {
    $user_links = array(
      'links' => array(
        'login' => array(
          'title' => t('Login'),
          'href' => 'user/login',
        ),
        'register' => array(
          'title' => t('Register'),
          'href' => 'user/register',
        ),
      ),
    );
}   
  else {
    $user_links = array(
      'links' => array(
        'account' => array(
          'title' => t('My account'),
          'href' => 'user/' . $GLOBALS['user']->uid,
        ),
        'logout' => array(
          'title' => t('Logout'),
          'href' => 'user/logout',
        ),
      ),
    );
  }
  $variables['user_links'] = theme('links', $user_links);
  $variables['classes_array'][] = 'wrapper-body';
  //handle logo
  if (theme_get_setting('andromeda_enable_logo')) {
    $variables['logo'] = theme_get_setting('logo');
  }
  else {
    $variables['logo'] = '';
  }
}        
  if ((arg(0)=='user')&&(arg(1)=='login')){
     drupal_set_title('Log in');
  }
  elseif ((arg(0)=='user')&&(arg(1)=='register')){
    drupal_set_title('Register');
}

But when I do something like that in my subtheme template.php I get still a white screen :-(

Any Idea?

Here is my Info file from the subtheme:

name = Andromeda (Subtheme)
description = Subtheme for the andromeda theme
core = 7.x
stylesheets[all][] = andromeda_sub.css
base theme = andromeda
regions[header] = Header
regions[slideshow] = Slideshow
regions[highlight] = Highlight
regions[content] = Content
regions[sidebar] = Sidebar
regions[footer] = Footer
settings[toggle_slogan] = 0
settings[andromeda_show_title_front_page] = 0
settings[andromeda_enable_logo] = 0

and the structure you can see in the picture. Do I something wrong?

Best regards
Frank

Title:Sitename "Home" at "create account"Lic

pls try this:

<?php
function andromeda_preprocess_page(&$variables) {
     if ((
arg(0)=='user')&&(arg(1)=='login')){
    
drupal_set_title('Log in');
  }
  elseif ((
arg(0)=='user')&&(arg(1)=='register')){
   
drupal_set_title('Register');
}
  if (!
$GLOBALS['user']->uid) {
   
$user_links = array(
     
'links' => array(
       
'login' => array(
         
'title' => t('Login'),
         
'href' => 'user/login',
        ),
       
'register' => array(
         
'title' => t('Register'),
         
'href' => 'user/register',
        ),
      ),
    );
}  
  else {
   
$user_links = array(
     
'links' => array(
       
'account' => array(
         
'title' => t('My account'),
         
'href' => 'user/' . $GLOBALS['user']->uid,
        ),
       
'logout' => array(
         
'title' => t('Logout'),
         
'href' => 'user/logout',
        ),
      ),
    );
  }
 
$variables['user_links'] = theme('links', $user_links);
 
$variables['classes_array'][] = 'wrapper-body';
 
//handle logo
 
if (theme_get_setting('andromeda_enable_logo')) {
   
$variables['logo'] = theme_get_setting('logo');
  }
  else {
   
$variables['logo'] = '';
  }
}       
?>

Title:LicSitename "Home" at "create account"

Hello chitz07,

this code work in my template.php. But when I use it in my template.php from the subtheme this will not work. I always get a white page. Do I something wrong with my subtheme?

Best regards
Frank

Hello,
have anyone an idea why I have these problem with my template.php in the subtheme? Maybe I should open a new issue with this?

Best regards
Frank