Facebook and twitter icon
Posted 03 March 2013 - 06:10 PM
If I change the look on the social icons. That is, I change them in the folder Pagelines/sections/branding/
Will they be overwritten when there is an upgrade? And if so, how do I prevent that from happening.
Posted 03 March 2013 - 06:17 PM
Yes, those would be changed. You can do this however, in a few different ways.
Using a child theme, you can clone that section to the child theme, then adjust them in the cloned version, which prevents them from being affected by upgrades.
Another way is to use CSS together with a simple hook. This too, avoids the pitfalls of upgrades overwriting custom code. See the bit about Child Themes here:
Posted 03 March 2013 - 06:36 PM
Thanks Rob, So I install base theme, activate it, then grab the folder sections and dump it in my new pageline-templete-theme ?
Or was that to easy ;-)
Or as I see now the section folder was alreaddy ther with simple_nav. Maby it´s enough to take the branding folder and
dump it in there as well.
Posted 03 March 2013 - 06:44 PM Best Answer
Yes, Peter, you copy and paste the branding folder into the Base Theme's Sections folder, just as you said. Once there, you can edit it as desired, via FTP.
It is just that easy!
- pehja likes this
Posted 07 March 2013 - 01:05 PM
My override system is not working
I want to change this standard icon:
What have I tried:
I copied /branding/twitter.png (including the branding folder) to pagelines-template-theme/sections/branding/twitter.png
This didn't work, no effect was seen:
so I edited printf('<a target="_blank" href="%s" class="twitterlink"><img src="%s" alt="Twitter"/></a>', ploption('twitterlink'), $this->base_url.'/community.gif');
in section.php in the child theme branding folder. (line 39)
I thought copying the branding folder to the child theme pagelines-template-theme would override the standard pagelines theme section/branding?
What am I missing here?
Posted 07 March 2013 - 01:12 PM
You only have to find the new twittericon you want. Name it to the same name that is in the PageLine icon folder. Put the new icon in the folder. Activate child theme. Grap the icon folder (with the new twittericon in it) and put it in the child theme folder. And you should be ready to go.
Posted 07 March 2013 - 01:39 PM
I had to deactivate and activate the theme to have it read the new folder layout. This is good to know and is not very obvious..