Title: thecramer's Replies | WordPress.org

---

# thecramer

  [  ](https://wordpress.org/support/users/thecramer/)

 *   [Profile](https://wordpress.org/support/users/thecramer/)
 *   [Topics Started](https://wordpress.org/support/users/thecramer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thecramer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thecramer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thecramer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thecramer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thecramer/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Share Buttons Adder] social button on homepage](https://wordpress.org/support/topic/social-button-on-homepage/)
 *  [thecramer](https://wordpress.org/support/users/thecramer/)
 * (@thecramer)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/social-button-on-homepage/#post-8615248)
 * I had this same problem with custom icons. I found this code in simple-share-
   buttons-adder/inc/ssba_buttons.php:
 *     ```
               // if running standard
               if ($booShortCode == FALSE) {
   
                   // use wordpress functions for page/post details
                   $urlCurrentPage = get_permalink($post->ID);
                   $strPageTitle = get_the_title($post->ID);
   
               } else { // using shortcode
   
                   // set page URL and title as set by user or get if needed
                   $urlCurrentPage = (isset($atts['url']) ? $atts['url'] : ssba_current_url($atts));
                   $strPageTitle = (isset($atts['title']) ? $atts['title'] : get_the_title());
               }
       ```
   
 * I edited this to just use the first part of the if/else (i.e., _$urlCurrentPage
   = get\_permalink($post->ID);_ and _$strPageTitle = get\_the\_title($post->ID);_),
   and that seems to get what I needed.

Viewing 1 replies (of 1 total)