Posted by emaxon 2 years 51 weeks ago
Hello,
Have installed the WordPress Mobile Pack and think it's pretty solid so far. I am, however, attempting to change some of the themes and add content to the Footer (ie. (c)2009 mysite.com) but cannot seem to get it to render on the actual page. I can make the changes right in the files on the server and have cleared the cache inside the Mobile Theme menu in my WP admin and cleared the theme/history in my browser (both iPhone and Safari w/ User Agent switching active).
Any suggestions?
Thanks,
Evan




Posted by James Pearce 2 years ago
Aha... well, I should say that the themes that are installed in the pack are copied over when you install the plugins.
(It's rare that plugins ship with themes, so WP hasn't traditionally supported the installation of the both)
So you might have been changing the copies of the themes within the plugin directory - when really you should have been editing the ones next door in the themes directory.
If this is the case, either edit them directly, OR, delete the ones under the themes directory and deactivate/reactive the plugin (which fires the copy-over again)
Does that make any sense?
Thanks
JP
Posted by Pauro 2 years ago
Hi guys,
I did attempt to modify the theme in the themes directory but...the strange thing is I can't change permission to re-write the file, and the file cannot be deleted...
Tried to deactivate the plugin first but no change, tried to delete the plugin then delete the themes, still no luck
any sugestion?
thanks
MoBiginnerpaul
Posted by James Pearce 2 years ago
Hi there,
I guess permissions are going to be specific to your installation. Obviously the web server has had the rights to be able to copy the files over to the themes area.
So... what sort of server and OS are you using? How are you trying to edit the file? Can you edit it with the editor built into the WordPress dashboard?
Do you have the ability to get on and change the permissions on the file in that directory? For users other than the web server itself?
Thanks
James
Posted by Pauro 2 years ago
Hi James,
Well.....let me see....
It's apache on linux. I assume that the problem is not on the server because I can edit any other files except the mobi theme. I don't use the wp dashboard editor so never touch the thing. Yes I do have ability to change permissions on all files and directories, except, again for the mobi theme.
Yup...it's sounds very strange isn't it? So for now i just stick to the basic theme, that works fine on my cell, hoping soon i could have a solution to modify it
Thanks
MoBiginnerPaul
Posted by James Pearce 2 years ago
Hi Paul,
Well I guess the thing is to see what the permissions are on those files and change them.
In a directory that you can edit the files for, enter
> ls -al
You'll see columns listing the rwx (read/write/execute) permissions, and the owner and group names.
Then do the same in the directory containing your 'read-only' themes and see what the difference is.
If necessary use chmod to change the permissions, perhaps in conjunction with sudo to get sufficient rights to do that at all.
A full UNIX access control tutorial is beyond me here, but try this tutorial: http://catcode.com/teachmod/ if I'm not making any sense ;-)
JP
Posted by Pauro 2 years ago
Perhaps this information would help to analyze the problem further:
- folder: themes/mobile_pack_base (&blue&green&red) is in 755 (drwxr-xr-x) and cannot be changed
- but all .php files inside the folders is still 644 (-rw-r--r--) and also cannot be changed
- the strange thing is....I can freely change permission for other themes I use, in the same themes folder
- Also i can modify permission in plugins/wordpress-mobile-pack/themes. It all in the 777 state right now.
really appreciate your help JP, thanks
paul
MoBiginnerPosted by James Pearce 2 years ago
Hi Paul, you should also check who 'owns' the files. The name of the user will be in the output of ls -al
My guess is that *you* own the plugins folder, but that the web server owns them theme folder (since it put it there itself when the plugin got installed)
You can use chown to change ownership... or just use sudo to set the permissions to 777 so that every system user can edit it.
James
Posted by Pauro 2 years ago
finally.....solved
did checked the "owner" thing, and it appear that it was under different group (bit strange condition but what effa....), after fixing it, now I can set the permission to 777.
thanks JP
paul
MoBiginnerPosted by James Pearce 2 years ago
OK, glad it worked out. And consider yourself a few more steps towards UNIX guruhood.
Now back to the plugin!
:-)
Posted by James Pearce 2 years ago
No problem - you're welcome and I hope you enjoy using the plugin.
Please spread the word with your 'teams' :-)