This Help forum is for issues relates to the latest release (1.7.5). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1
  • 2

TOPIC:

how to add/modify a theme? 4 years 9 months ago #21

  • JustCarmen
  • JustCarmen's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 982
I'm lost. I've tested the code you've sent me by email and which I've fixed and posted here. It was working in my local environment and solved the errors you had.

Your code is now different. First of all you have changed all the names and the theme you want to extend. Not a big deal but it makes things very confusing.

But to answer your question:

You can find the name in the theme.php from the choosen theme. (f.e. WebtreesTheme or ColorsTheme)
but I m not complete sure if I m right here.

This is correct. Uses should be placed above the class declaration.

But be aware that this theme will not work because of the use of the Class 'myTheme' and the used namespace. It is the same as the example _custom theme. So if you have both in your themes directory you will get an error. The code I posted earlier does work.

Carmen
Designer of the JustLight theme and Fancy Imagebar for webtrees 2.x


Also designer of the JustBlack theme and the other Fancy modules for webtrees 1.x

Check my website at www.justcarmen.nl

Please Log in or Create an account to join the conversation.

how to add/modify a theme? 4 years 9 months ago #22

  • JustCarmen
  • JustCarmen's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 982
After sleeping over it I see what you are trying to do with your last post.

Forget my previous one. You are giving a way of modifying the custom theme so it will be easier to understand what you need to change when making your own, right?

Carmen
Designer of the JustLight theme and Fancy Imagebar for webtrees 2.x


Also designer of the JustBlack theme and the other Fancy modules for webtrees 1.x

Check my website at www.justcarmen.nl

Please Log in or Create an account to join the conversation.

how to add/modify a theme? 4 years 9 months ago #23

  • jopla
  • jopla's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 158
Hoi Carmen,

Ja, ik dacht aan je reactie al te zien dat je mijn bedoeling niet helemaal had begrepen. :-) Ik ben ook niet altijd even wakker als ik met de stamboom bezig ben. :-)

Misschien kunnen mijn suggestisch worden toegevoegd aan de _custom/theme.php file en in de wiki: wiki.webtrees.net/en/Category:Customising_webtrees ?

Geen idee hoe dat moet en met mijn kennis van het engels ben ik denk ik niet degene die het zou moeten doen.

English translation from google:

Hi Carmen,

Yes, I thought to see your reaction that you had not quite understood my intention. :-) I'm not always awake when I'm working on the family tree. :-)

Maybe add my suggestions involving the _custom / theme.php file and in the wiki: wiki.webtrees.net/en/Category:Customising_webtrees?

No idea how to do that with my knowledge of English I think I'm not the one who should be doing.

Please Log in or Create an account to join the conversation.

Last edit: by jopla.
  • Page:
  • 1
  • 2
Powered by Kunena Forum