Fork me on GitHub

BlankTheme v.1 and logo.png  Bottom

  • 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
  • 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
  • Indeed,
    after rename the folder you need yo update the Theme Name in the version.php, and update the calls of

    Code

    $dom = ZLanguage::getThemeDomain('BlankTheme');
    to

    Code

    $dom = ZLanguage::getThemeDomain('PareNet');
    note that I suggest to you to rename to 'PareNet' instead BlankThemePareNet icon_wink

    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 icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 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.
  • 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
  • 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
  • I meant create one to track what you do :)

    --
    Home Page | Find on Facebook | Follow on Twitter
  • 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.
  • 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
  • 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

This list is based on users active over the last 60 minutes.