I'm trying to place some content in the right side of the header but I notice there is no header.php in Kalium's child theme. I have a few questions about this:
- Is it possible to place content in header using Kalium?
- If not; I have a plugin which outputted this code to create a widget in the header:
dynamic_sidebar( 'loginidcontent' );
Obviously I don't want this to be overwritten when I update the theme so where would I place this code to ensure it doesn't get overwritten by updates?
Just a quick one on this, as it might be a few months until 2.2 is released I was wondering if you could see what's wrong with my usage of the code you provided. I've placed the code you provided inside the second action hook, is this correct? (see attachment).
This isn't rendering anything on the front end so I'm presuming not, please let me know what I need to change. :)
The issue here is that the code you have added is syntax valid. The problem is that the code is placed in the wrong file. So just remove that code and add it in functions.php (in the end of file) and it should work just fine for you.
Hi guys,
I'm trying to place some content in the right side of the header but I notice there is no header.php in Kalium's child theme. I have a few questions about this:
- Is it possible to place content in header using Kalium?
- If not; I have a plugin which outputted this code to create a widget in the header:
dynamic_sidebar( 'loginidcontent' );
Obviously I don't want this to be overwritten when I update the theme so where would I place this code to ensure it doesn't get overwritten by updates?
Thanks,
Best Regards,
Jack Vanstone
Hi Jack,
This question came just in right time. We are changing the header implementation to allow such interventions so you can add your own code there.
Actually the current header doesn't supports this however here is how you can add it (temporarily):
In tpls/header-main.php there are to action hook blocks you can assign:
(view large version)
So in your case you can add the following code:
And then you have to style the sidebar with the respective CSS. Note that the look and feel of this should be handled by your own CSS.
In the upcoming updates (v2.2), this process will be simplified and become much easier to integrate.
I hope this will work for you.
Hi Arlind,
Thank you for your detailed reply, the site is under development so I'll wait for the Kalium 2.2 update before implementing this feature.
Thanks again for your time on this issue! :)
Best Regards,
Jack Vanstone
Hi Arlind,
Just a quick one on this, as it might be a few months until 2.2 is released I was wondering if you could see what's wrong with my usage of the code you provided. I've placed the code you provided inside the second action hook, is this correct? (see attachment).
This isn't rendering anything on the front end so I'm presuming not, please let me know what I need to change. :)
Thanks,
Best Regards,
Jack Vanstone
Hi Jack,
The issue here is that the code you have added is syntax valid. The problem is that the code is placed in the wrong file. So just remove that code and add it in functions.php (in the end of file) and it should work just fine for you.
Feel free to ask anything you want to know.