Jump to content
pehja

Facebook and twitter icon

Recommended Posts

pehja

Hi!
 

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.

 

Thanks!

 

 


Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites
Rob

Hi Peter, 

 

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: http://support.pagelines.me/docs/customization/customization-methods/


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
pehja

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. 


Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites
Rob

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! :)

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
janneke

My override system is not working

 

context:

I want to change this standard icon:

http://www.emagiz.com/wp-content/themes/pagelines/sections/branding/twitter.png

 

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?

Share this post


Link to post
Share on other sites
pehja

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.  


Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites
janneke

Thank you!

 

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..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×