I am using BlankTheme for a theme on my site and have changed the logo.png in the images folder. I wanted to rename the theme to BlankThemePareNet so that the next time I update my Zikula version and themes that I would not over-write my customized theme. When I do this it breaks the link to my logo.png. Is there a way to rename theme wihtout breaking the link? This is all in the hopes of not having to over-write a particular theme at a next future update.
Marc
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
BlankTheme v.1 and logo.png
-
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
How is the logo.png called in the theme? DId you change the theme name in the version.php?
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Indeed,
after rename the folder you need yo update the Theme Name in the version.php, and update the calls of
toCode
$dom = ZLanguage::getThemeDomain('BlankTheme');note that I suggest to you to rename to 'PareNet' instead BlankThemePareNetCode
$dom = ZLanguage::getThemeDomain('PareNet');
If you use the font resize icons, you need to replace the 'BlankTheme' value to your folder name. I'll update the BlankTheme Wiki to include the gettext considerations
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
Hi Mateo:
Where do I find the calls? How do I change these settings? Is there a way of doing this through the Themes module or change the code directly?
BTW .. I changed the theme name to BTPareNet so that I can keep track of the original theme title.
Marc
Edited by marc@marcpare.com on Sep 27, 2010 - 08:07 PM. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
marc@marcpare.com
Where do I find the calls? How do I change these settings? Is there a way of doing this through the Themes module or change the code directly?
In the version.php of the theme, and you must do it on a code level.
Quote
BTW .. I changed the theme name to BTPareNet so that I can keep track of the original theme title.
You mean so you know it's a BlankTheme based THeme? That's what Readme.txt is for ;)
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
Thanks. I changed it. But no changes still. I also noticed that there are the same calls in the plugins folder files (the 4 functions... files), should I change these too?
Sorry, I couldn't find any Readme.txt in the BlankTheme docs folder.
Marc -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
-
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
LOL, sorry.
I have done the changes in version.php and it works fine with renaming the theme name.
I still wonder if the same should be done in the plugins folder with the 4 "functions...." files.
Marc
Edited by marc@marcpare.com on Sep 27, 2010 - 11:37 PM. -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Yes, all the theme domain values should be changed.
You need to generate the gettext catalog of your theme (/locale/theme_btmacpare.pot) to be able to translate it later if you need to.
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
Thanks for all the replies the logo shows. However, when I am in admin mode, the logo now shows on the "Home" page but does not show on the "Site Admin Panel" page or any of the admin related pages. This is not a big problem as it doesn't really affect the user. Is there a way to fix this too?
Mateo -- I am not too good at coding. Could you tell me why I would want to generate the gettext catalog for my theme?
Thanks for all of your help.
Marc
- Moderated by:
- Support
