tab title

spiralstaircase / 2013-09-08 17:13:26   

Hello

very simply I want to change the title of my page as it appears in the browser tab and when it is embedded etc.

my website is paulsimonrichards.com

I would like to change the main page title to simply the name of the site and then on other pages to keep it as it is with the name of the exhibit.

If this is not possible then I would like to simply change the title for all pages to the site title.

I have looked at other threads but cannot locate the files/website section that is needed. I have tried modifying the index.php inside admin>assets>template and nothing happens

many thanks

arsondpi / 2013-09-08 17:46:40   

You need to use two templates to do what you're after but if that doesn't make much sense I would advise to simply have one page title for all your pages.
With your ftp application and a code editor open ndxzsite/default/index.php and find line 5 and change it

  1. <title>{{obj_name}}</title>

This will just use the name of your site as set in the Admin>Theme tab.

spiralstaircase / 2013-09-08 17:57:18   

I have tried many times to work with this file

however it simply reads:

{{obj_itop}}
{{obj_ibot}}

spiralstaircase / 2013-09-08 18:13:46   

apologies - I must have mixed up my index.php files along the way. Have now located the correct file, have modified and still no change

spiralstaircase / 2013-09-08 21:24:44   

I have modified both the index.php file and also tried the same code change via admin>assets but it doesn't make any difference.

Also I have been trying to add google analytics script via the same two methods and this is also not working.

Is there any way that I may be overriding the index.php without realising it?

arsondpi / 2013-09-08 22:48:29   

No there isn't - and you must be doing something wrong...
Care to elaborate on what you are actually doing to edit the index.php file?
This is pretty easy...

spiralstaircase / 2013-09-09 10:01:55   

I have been using Dreamweaver to edit the ndxzsite/default/index.php file.

I have made two modifications:
a) line 5 to modify the page title as per your instruction
b) line 40 to add in the google analytics code before tag.

I have used cyberduck to manage the ftp.

following these modifications I have looked at the code online via admin/assets/template/index.php

the code shown online contains both of the above modifications.

But there is no change to the title table on my site and Google analytics does not link to the site.

arsondpi / 2013-09-09 16:18:57   

If you edited and then replaced/reuploaded the index.php file things ought to work.
I've heard that dreamweaver is not very simple when it comes to editing code and that sometimes it messes up code, thus I would suggest using a simple code editor.

spiralstaircase / 2013-09-09 20:42:36   

Okay well it seems clear that I should start to unpick the site and possibly replace each of the indexibit files with the originals to find out why it is not working. Is there a good place to start with this? is it advisable to overwrite files one by one replacing with the default template files?

regarding dreamweaver. I have only just started using it, I previously used text edit. I thought I should put DW instead of the latter because it sounds more serious. This forum is generally written in a very serious tone and is therefore quite exclusive at times. I have a hunch that it would be useful for many users if the basic support and user information were more accessible.

arsondpi / 2013-09-10 07:22:42   

Just replace the index.php file with the original.
Then try editing things again.
It's hard to tell what you might be doing wrong - this kind of customization is very easy. If you do things as you say you do, then things ought to work:

- download the original index.php you have in your server
- edit the lines you want
- save the file
- reupload/overwrite the server file with the edited one.

This thread has been closed, thank you.