Member
Member
nbruley   2012-03-26, 15:11
#1

What is the easiest hack to change Options-Gallery-Website URL depending on the language chosen? Should I change the function or just hard-code it in the theme? I'm guessing changing the theme would work better with upgrades.

Thanks.

Administrator
Administrator
acrylian   2012-03-26, 15:14
#2

I think you answered yourself..;-)

Member
Member
nbruley   2012-03-26, 18:45
#3

Good, Just needed reassurance some better method wasn't out there

Member
Member
nbruley   2012-03-28, 03:14
#4

Does Zenphoto have a method of overriding php functions from the core in functions.php in the theme? Just checking as that would be easier than hardcoding in each php file of the theme, which then makes it harder to duplicate the theme in another site.

Administrator
Administrator
acrylian   2012-03-28, 08:52
#5

You cannot override (which means re-declaring) existing php functions by design of PHP. If you need specific functionality you need to create theme custom functions (all explained on the theming tutorial) or a custom plugin.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.