WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Is this OK for my function.php? (3 posts)

  1. martcol
    Member
    Posted 8 months ago #

    I wonder if someone might be good enough to just check this bit of code. It works OK so that might mean I'm on the right track. All I am trying to do, in my child theme is use a theme specific hook to add some HTML.

    function bts_social_share() {
            if(!is_feed() && !is_home()) {
                   include_once( 'social-share.php' );        }
            }
    add_action ('reactor_post_footer', 'bts_social_share');

    Thanks

  2. riversatile
    Member
    Posted 8 months ago #

    Hi martcol,

    It looks good.

    Regards

  3. martcol
    Member
    Posted 8 months ago #

    Thank you

Reply

You must log in to post.

About this Topic

Tags

No tags yet.