how to add a facebook icon next to rss icon at the top of theme
-
I actually asked about a similar question in this post yesterday:
https://forum.graphene-theme.com/topic/beta-graphene-11b1/page/2#post-512
Its about placing icons after the RSS at the top π
AdminYou can use the
graphene_feed_icon
action hook to add additional icons beside the RSS icon at the top bar.The code should be something like this below (place it in your child theme’s functions.php):
function graphene_social_icons(){
?>
<!-- The content goes here -->
<?php
}
add_action('graphene_feed_icon', 'graphene_social_icons');PS: Michael, that looks familiar? π
AdminOops..edited the code to remove the extra
}
πThe buttons should work in all of the website’s pages, including the category pages. There’s nothing in the code to stop it from being displayed in the category page.
I figured out how to use a child theme with a css file, but damn if I can figure out how to make a child functions.php file..my php skills are very limited..would you mind indulging…I even googled it and it didn’t help much.
Andrew: All you do is just upload a blank functions.php file to the graphene-child themes folder and then log into wp-admin to start editing it.
Syahir: The images DO display but they are NOT clickable ….
I’m gona install the new beta now see if it helps π
thanks.
now I just need to figure out what code to enter inside here:
function graphene_social_icons(){
?>
<!– The content goes here –>
<?php
}
add_action(‘graphene_feed_icon’, ‘graphene_social_icons’);
man do I need to learn php…wow
- You must be logged in to reply to this topic.