Minimalist & Highly Customizable WP Blog

Updating the theme


I wanted to add a new social button to be shown in the header. A link to my github account.

I edited these two files:


Added the following line at the bottom of the author-social div.

if(of_get_option('author_github_'.get_the_author_meta( 'ID' ))){ ?> 
                        <a href="<?php echo of_get_option('author_github_'.get_the_author_meta( 'ID' )); ?>"><i class="fa fa-github"></i></a>
<?php } ?>


Added this line under the instagram option

        $options[] = array(
            'name' => __('GitHub', 'bluth_admin'),
            'desc' => __('GitHub URL for this user', 'bluth_admin'),
            'id' => 'author_github_'.$user->ID,
            'std' => '',
            'type' => 'text');

The option is being shown and I write my GitHub URL. When I submit changes the header is not changed and the github link is not shown.

Any idea why does this happen?


Please sign in to view comments for this topic