How do I add additional Social Icons
#1
Posted 12 October 2012 - 04:19 PM
PageLines v2.3 and wanted to know How I can add a tumblr and pinterest social icon to the branding section at the top of my website.
I have the images of the pinterest and tumblr social icons already uploaded to what I believe is the right folder:
#2
Posted 12 October 2012 - 04:26 PM
#3
Posted 12 October 2012 - 05:40 PM
I have now installed the base theme, so in the functions php file of the base theme in the apearance edit panel in wordpress can I now add a hook... I only know a little CSS and ...so I was wondering if this linkedin hook I modified from the funtions php file in the branding folder will work...all i changed was the image link to the pinterest image at the end.
.....or should I be writing a totally different code to add the pinterest social icon so I dont have to change the LinkedIn one?
if(ploption('linkedinlink'))
printf('<a target="_blank" href="%s" class="linkedinlink"><img src="%s" alt="LinkedIn"/></a>', ploption('linkedinlink'), $this->base_url.'/pinterest icon.png');
Hope i'm not asking to many things in one post....
#4
Posted 12 October 2012 - 07:00 PM
#5
Posted 12 October 2012 - 07:16 PM
#6
Posted 12 October 2012 - 07:46 PM
#7
Posted 12 October 2012 - 08:48 PM
The site is not showing up now for some reason.... after copied and paste the code i just pressed update at the bottom of the functions.php page in wordpress ....i just wanted to save the code before i found the direct url for the image. after i pressed update the screen went blank with the error message
Parse error: syntax error, unexpected '<' in /home/content/01/7092701/html/wp-content/themes/pagelines-template-theme/functions.php on line 32
....the site is not showing up....either it says the same thing...
#8
Posted 12 October 2012 - 08:59 PM
<a href=" src=" icon.png" border="0">
</a>
i did not delete anything from that page..........just added the above code to the bottom of the fuctions.php file
#9
Posted 12 October 2012 - 10:45 PM
#10
Posted 12 October 2012 - 11:01 PM
#11
Posted 13 October 2012 - 01:39 AM
Hi mackenzie...I made changes to the functions php page within wordpress.
#12
Posted 13 October 2012 - 01:52 AM
#13
Posted 13 October 2012 - 04:59 PM
Just as a primer on hooks, this is from a previous version, but still applies today for the base theme's functions.php (which is where the hook belongs):
// HOOKS EXAMPLE --------//
class="stumbleupon"></a>
// Below is an example of how you would add a social media icon to the icons in header (branding section)
// We have placed a hook at the end of the icon set specifically add new icons without modifying code or having to worry about your edits
// getting thrown out during the upgrade process. The way to use hooks goes a little like this:
// add_action('hook_name','function name');
// ---> uncomment to load
//add_action('pagelines_branding_icons_end', 'add_icons_to_branding');
// function name
function add_icons_to_branding(){
// This hook adds a stumbleupon icon to the header of your theme. The class referenced in the link can be seen in the style.css
// and is the image from the CSS is placed in the images folder
?>
<a href="
<?php }
// end function
The corresponding CSS looked like this:
.icons .stumbleupon {background: url('../platformpro/images/sprite-socialicons.png') no-repeat -176px 0;}
.icons .stumbleupon:hover {background: url('../platformpro/images/sprite-socialicons.png') no-repeat -176px -22px;}
Obviously, the URLS for the images are outdated. And the values of the images (-176, etc) would have to be changed
#14
Posted 13 October 2012 - 07:21 PM
section.php file that is located in the branding folder . then i just added the links in the header and footer section in base theme global settings. the problem seems to be resolved.
#15
Posted 13 October 2012 - 07:50 PM
#16
Posted 13 October 2012 - 07:50 PM
Also tagged with one or more of these keywords: Resolved, branding social icons
Resolved
PageLines Framework →
Technical Support →
Anything Boxes And Polylang Language Filtering ProblemStarted by janpeeters , 01 Dec 2012 |
|
|
||
Header In Banner AlignmentStarted by bankrollbuilder , 28 Nov 2012 |
|
|
||
Resolved
PageLines Framework →
Customizations →
2 Hero UnitsStarted by starlit , 28 Nov 2012 |
|
|
||
Tabs Do Not Align HorizontallyStarted by hutruk , 28 Nov 2012 |
|
|
||
Resolved
PageLines Framework →
Customizations →
Reduce Margin In Contact FormStarted by texasx , 27 Nov 2012 |
|
|











