Archived topic
How to add the custom image icon on right of the menu?
3 replies · Started by weiqispace on November 2, 2017
Hi there.
I want to do as same as this site: http://www.sgidigi.com/
========================================================================================
I add this in functions.php:
add_action( ‘your_hook_name’,’example_function_name’ );
function example_function_name() { ?>
Insert your hook contents in here.
<?php }
And then replace your_hook_namename into generate_inside_navigation
I am confused about this: Insert your hook contents in here.
I replace it into <a href="https://www.facebook.com/talcasv/"><img src="http://demo21.newbieboss.com/wp-content/uploads/003-facebook.png" /></a>
========================================================================================
And then my site looks like this: https://demo21.newbieboss.com
How can I do as same as the site I mention above?
Thanks
Hi there,
Try something like this:
add_action( 'generate_inside_navigation','lh_add_social_images' );
function lh_add_social_images()
{
?>
<div class="icon-images">
<a href="https://www.facebook.com/talcasv/"><img src="http://demo21.newbieboss.com/wp-content/uploads/003-facebook.png" /></a>
</div>
<?php
}
Then CSS:
.icon-images {
float: right;
}
Lots of examples of using this hook on this forum. Just search generate_inside_navigation.
Thank you!!!! It is pretty nice!!!
https://demo21.newbieboss.com/
GP team is the best I have ever seen.
I love fb group and forems.
Thanks Leo =)
Glad we've been helpful :)