[Resolved] How to add the custom image icon on right of the menu?

Home Forums Support How to add the custom image icon on right of the menu?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #415001
    weiqispace

    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

    GP Premium 1.4.3
    #415046
    Leo
    Staff
    Customer Support

    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.

    #415403
    weiqispace

    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 =)

    #415638
    Leo
    Staff
    Customer Support

    Glad we’ve been helpful 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.