Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comments
Comment #1
shadcn CreditAttribution: shadcn commentedHmm, 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.
Comment #2
fraweg CreditAttribution: fraweg commentedHello,
thanks for your fast answer...Here is the code:
Thank you for any help!
Frank
Comment #3
shadcn CreditAttribution: shadcn commentedIs the title "Home" on other pages as well? or only the create account page?
Comment #4
fraweg CreditAttribution: fraweg commentedNo 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
Comment #5
fraweg CreditAttribution: fraweg commentedHello Arsdad,
did you have an Idea how to hide/change the "Home"-Title on the account creation page?
Best regards
Frank
Comment #6
fraweg CreditAttribution: fraweg commentedam I alone with this issue?
Best regards
Frank
Comment #7
Chithra K CreditAttribution: Chithra K commentedIf 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.
Comment #8
fraweg CreditAttribution: fraweg commentedThanks chitz07 for your help!
When I put this:
at the end of template.php, I get a blank site with nothing :-(
Do I something wrong?
Best regards
Frank
Comment #9
Chithra K CreditAttribution: Chithra K commentedThat 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.
Comment #10
fraweg CreditAttribution: fraweg commentedHello,
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
Comment #11
Chithra K CreditAttribution: Chithra K commentedyes, inside template.php
can you upload a screen shot of the full page?
Comment #12
Chithra K CreditAttribution: Chithra K commentedThe screenshot should contain the url ..
Comment #13
fraweg CreditAttribution: fraweg commentedHello 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
Comment #14
Chithra K CreditAttribution: Chithra K commentedTry this
Comment #15
fraweg CreditAttribution: fraweg commentedHello 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:
at the end of my theme template.php in the function
"function andromeda_preprocess_page(&$variables)"
and it works.
So I have this code:
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:
and the structure you can see in the picture. Do I something wrong?
Best regards
Frank
Comment #17
Chithra K CreditAttribution: Chithra K commentedpls try this:
Comment #18
shadcn CreditAttribution: shadcn commentedComment #19
fraweg CreditAttribution: fraweg commentedHello 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
Comment #20
fraweg CreditAttribution: fraweg commentedHello,
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