Jump to content


Photo
- - - - -

Facebook and twitter icon


Best Answer Rob , 03 March 2013 - 06:44 PM

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

Go to the full post


  • Please log in to reply
6 replies to this topic

#1 pehja

pehja

    Advocate

  • Members


  • 564 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

Posted 03 March 2013 - 06:10 PM

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!

 

 



#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 03 March 2013 - 06:17 PM

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:

Please Login or Register to see this Hidden Content



#3 pehja

pehja

    Advocate

  • Members


  • 564 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

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. 



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

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

#5 janneke

janneke

    Newbie

  • Members
  • 7 posts
  • Country: Country Flag

Posted 07 March 2013 - 01:05 PM

My override system is not working

 

context:

I want to change this standard icon:

Please Login or Register to see this Hidden Content

 

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?



#6 pehja

pehja

    Advocate

  • Members


  • 564 posts
  • LocationSweden
  • Framework Version:Pagelines v2.4.3 and DMS
  • Country: Country Flag

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.  



#7 janneke

janneke

    Newbie

  • Members
  • 7 posts
  • Country: Country Flag

Posted 07 March 2013 - 01:39 PM

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