Quote:
Originally Posted by carolc
Thank you, I will go do some research on writing plugins. Would you know what hook location I might need to use? I'm sure having that as a keyword will help me get better search results.
|
If the logo is in the header template then you probably want to use the parse_templates hook. The best thing to do when deciding on a hook is to look in the code. It helps to have the code on your location computer and set it up so that you can search across all files. Then you can search for a hook location, for instance, and look to see what can be dome at that location and which variables are available.
Quote:
Awesome... It's nice to see something familiar (as I struggle to learn php). Could switch/case have been used for some of the earlier examples in this thread (if they wanted more if/else conditions) or can it not be used in templates?
|
You pretty much only have 'if' available in a template.