Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Hide Site Name

Asked Modified Viewed 3,323 times
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
asked
Member

Greeting,

how to hide site name when read artikel and want appear only title of artikel ?

Tq
0 replies

7 posts

M
MarcusG
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

Search for add_to_title in articles.php and remove the part that you don't want.
0 replies
S
SimpleVision
S
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

Apart from not naming your side in administration :D you can edit the article.php file, but you have to consider the problems that this might cause when upgrading to a newer version. So when upgrading you will have to change back to the default.

Anyways in article.php on line 62 change the name of the function add_to_title to set_title
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
add_to_title($locale['global_201'].$article_subject);[/syntaxhighlighter]
to
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
set_title($locale['global_201'].$article_subject);[/syntaxhighlighter]

I hope this works for you.
0 replies
S
SimpleVision
S
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

Quote

MarcusG wrote:
Search for add_to_title in articles.php and remove the part that you don't want.


That's what I thought too, unfortunately in add_to_title function the site name is already preset from a global variable
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]

$fusion_page_title = $settings['sitename'];

function add_to_title($addition=""wink{
global $fusion_page_title;

$fusion_page_title .= $addition;
}[/syntaxhighlighter]
0 replies
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
answered
Member

Quote

SimpleVision wrote:
Apart from not naming your side in administration :D you can edit the article.php file, but you have to consider the problems that this might cause when upgrading to a newer version. So when upgrading you will have to change back to the default.

Anyways in article.php on line 62 change the name of the function add_to_title to set_title
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
add_to_title($locale['global_201'].$article_subject);[/syntaxhighlighter]
to
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
set_title($locale['global_201'].$article_subject);[/syntaxhighlighter]

I hope this works for you.


thanx...working
0 replies
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
answered
Member

how to remove : text ? in the pic (see the red box in this pic)

www.murabbi.net/remove.jpg
0 replies
M
MarcusG
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

The text there should be: "Article:"

Seems like you modified the locales.
0 replies
K
KonickMultimedia
K
Free Online Games: http://www.gamescut.com
  • Member, joined since
  • Contributed 76 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

Try:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]set_title($article_subject);[/syntaxhighlighter]
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

K
K
Free Online Games: http://www.gamescut.com
  • Member, joined since
  • Contributed 76 posts on the community forums.
  • Started 9 threads in the forums
E
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
M
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
S
S
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 11 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet